23.12.2011, 00:52
Here is my script but its not working.
pawn Код:
if (strcmp("/godc", cmdtext, true, 8 ) == 0)
{
if(GetPVarInt(playerid,"GodCar")==0)
{
SetVehicleHealth(playerid,1000000);
SetPVarInt(playerid,"GodCar",1);
SendClientMessage(playerid,COL_ADMIN,"God car on");
}
else
{
SetVehicleHealth(playerid,1000);
SetPVarInt(playerid,"GodCar",0);
SendClientMessage(playerid,COL_ADMIN,"God car off");
}
return 1;
}