28.03.2011, 18:23
1)
Use printf or SendClientMessage or whatever at the top of OnPlayerCommandText
2)
Use a timer and IsPlayerInRangeOfPoint to detect if a player went to the forbidden zone and teleport him then or use
to knock him back.
Use printf or SendClientMessage or whatever at the top of OnPlayerCommandText
pawn Код:
printf("Player %d typed a command: %s", playerid, commandtext);
Use a timer and IsPlayerInRangeOfPoint to detect if a player went to the forbidden zone and teleport him then or use
pawn Код:
new Float:x, Float:y, Float:z;
GetPlayerVelocity(playerid, x, y, z);
SetPlayerVelocity(playerid, -x, -y, -z);