01.04.2010, 22:00
if(!strcmp("/poffduty",cmdtext))
{
new gTeam[MAX_PLAYERS];
if(gTeam[playerid] == 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. ");
}
Try?
return 1;
}
{
new gTeam[MAX_PLAYERS];
if(gTeam[playerid] == 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. ");
}
Try?
return 1;
}