Not detecting copcar
#8

pawn Код:
if (strcmp(cmd, "/cuff", true) == 0)
{
new tmp[20];
tmp = strtok(cmdtext, index);
if (strlen(tmp))
{
id = strval(tmp);
if (IsPlayerConnected(id))
{
if (IsACopCar(carid))
{
SendClientMessage(id, 0xFFFFFFFFF, "You have been cuffed and cannot move");
TogglePlayerControllable(id,0);
return 1;
}
else
{
SendClientMessage(playerid, 0xFF0000AA, "You're not in a registered cop car");
}
}
else
{
SendClientMessage(playerid, 0xFF0000AA, "Player is not found");
}
}
else
{
SendClientMessage(playerid, 0xFF0000AA, "[Usage]: /cuff [playerid/name]");
}
return 1;
}
Reply


Messages In This Thread
Not detecting copcar - by JoeDaDude - 12.06.2009, 20:28
Re: Not detecting copcar - by JoeDaDude - 12.06.2009, 21:11
Re: Not detecting copcar - by efeX - 12.06.2009, 22:15
Re: Not detecting copcar - by JoeDaDude - 12.06.2009, 22:17
Re: Not detecting copcar - by BMUK - 12.06.2009, 22:29
Re: Not detecting copcar - by JoeDaDude - 12.06.2009, 22:35
Re: Not detecting copcar - by BMUK - 12.06.2009, 22:38
Re: Not detecting copcar - by JoeDaDude - 12.06.2009, 22:39
Re: Not detecting copcar - by BMUK - 12.06.2009, 22:50
Re: Not detecting copcar - by JoeDaDude - 12.06.2009, 22:57

Forum Jump:


Users browsing this thread: 1 Guest(s)