25.10.2012, 16:19
Why do you first check if the player is not at any of those locations, then if the player is at some of them, you check it again just to confirm this fact? I find it pretty stupid.
What you should do instead:
What you should do instead:
pawn Code:
if(IsAt247(playerid))
{
// 247 code
}
else if(IsAtElecShop(playerid))
{
// ElecShop code
}
else if(IsAtHardShop(playerid))
{
// HardShop code
}
else
{
SendClientMessageEx(playerid, COLOR_GRAD2, " You are not in a Store!");
return 1;
}