01.04.2010, 23:37
pawn Код:
if(!strcmp("/poffduty",cmdtext))
{
new gTeam[MAX_PLAYERS]; // YOU CREATED THE VAR
if(gTeam[playerid] == 1) // you checked it, but you didn't used it in anywhere, so how could it be 1?
{
if(IsPlayerInRangeOfPoint(playerid, 7.0, 2295.9094,2451.3831,10.8203))
{
SendClientMessage(playerid,0xFFFFFFFF,"You changed to the civilian skin, and also you will be able to drive your job's car.");
SetPlayerSkin(playerid, 185);
}
else
SendClientMessage(playerid,0xFFFFFFFF,"You have to go to LVPD spawn place, to use this command");
}
else
SendClientMessage(playerid,0xFFFFFFFF, " You need to be cop in order to use this command. ");
}
return 1;
}