- 0
Ma poate ajuta cineva la anti-troll ? OnPlayerCarTroll(playerid, vehicleid, trolledid, trolltype);
-
Similar Content
-
- 2 answers
- 981 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
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 ?
:((
5 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now