arrest command not working
#1

So Ive tried to get this FS to work,Yes it is a arrest filterscript but when i do /arrest (playerid) nothing happens. Please show me these errors.

dcmd_arrest(playerid, params[])
{
new id;
if (sscanf(params, "u", id)) SendClientMessage(playerid, 0xFF0000AA, "Usage: \"/arrest <playerid>\"");
else if (id == INVALID_PLAYER_ID) SendClientMessage(playerid, 0xFF0000AA, "[Server] Player not connected");
else
{
if(Team[playerid] == 1)
{
if (GetDistanceBetweenPlayers(playerid,id) >5)
{
SetPlayerPos(id, 197.6661,173.8179,1003.0234);
SetPlayerInterior(id, 3);
SendClientMessage(id, COLOR_RED, "[Server] Haha arrested sucka");
SendClientMessage(playerid, 0x00FF00AA, "[Server] You arrested the n00b");
{

}
}
}
return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)