- 0
Ma poate ajuta cineva la anti-troll ? OnPlayerCarTroll(playerid, vehicleid, trolledid, trolltype);
-
Similar Content
-
- 3 replies
- 185 views
-
- 13 replies
- 1,417 views
-
- 9 replies
- 351 views
-
- 3 replies
- 392 views
-
Cine ma poate ajuta pentru comanda cu /masina un delay de un minut iar pentru comanda /comanda7368 sa poata sa o foloseaca doar odata ?
By GamerulFOX,
- 8 replies
- 733 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
Question
VenoMarius
Am o problema
in anti troll .pwn scrie asa:
/*
OnPlayerCarTroll(playerid, vehicleid, trolledid, trolltype);
Type 1: Teleporting between vehicles (can give cheaters chance to control other's players) (also lag cheat detected here).
Type 2: Control other player's cars or spin/rotate (Done by checking the player's actual vehicle).
Type 3: Fast kick/rotate or teleporting inside drivers. (detectd by position change)
Type 4: Teleporting inside a vehicle illegally as a driver (without PutPlayerInVehicle or OnPlayerEnterVehicle).
Type 5: Teleporting inside a vehicle illegally as a passenger (without PutPlayerInVehicle or OnPlayerEnterVehicle).
Type 6: Remote kick a player by tping a vehicle inside of him. (Too fast the server reads it as an unoccupied vehicle).
*/
si nu stiu ce sa fac
eu il am asa :
public OnPlayerCarTroll(playerid, vehicleid, trolledid, trolltype)
{
new KickString[80], cheatername[MAX_PLAYER_NAME]; // Kicking message and cheater's name
GetPlayerName(playerid, cheatername, sizeof(cheatername));//Saving cheater's name in a string
if(trolledid != INVALID_PLAYER_ID)// If the trolled person is valid
{
SendClientMessage(trolledid, -1, "You were trolled but the cheater was taken care of");//Inform him
format(KickString, sizeof(KickString), "Server has kicked %s , reason: Trolling #%d vehicle %d player %d", cheatername, trolltype, vehicleid, trolledid);//Kick with a reasonable message
}
else format(KickString, sizeof(KickString), "Server has kicked %s , reason: Trolling #%d vehicle %d", cheatername, trolltype, vehicleid);//If no one was trolled kick the troller normally
SendClientMessageToAll(-1, KickString);//Sending the finalized string
Kick(playerid);//Kicking the cheater
return 1;
}
si imi da error.
Va rog
Ma poate ajuta cnv ?
:((
Link to comment
Share on other sites
5 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.