12.06.2009, 20:18
(IsACopCar(carid)) // 'carid' not defined
IsACopCar( GetPlayerVehicleID( id ) ) // here is no need to define something
IsACopCar( GetPlayerVehicleID( id ) ) // here is no need to define something
pawn Код:
if (IsPlayerConnected(id))
{
if (IsACopCar( GetPlayerVehicleID( id ) )) // <=====
{
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");
}
}