11.01.2010, 16:31
Here it is, fixed one.
pawn Код:
if (strcmp("/becomecop", cmdtext, true, 10) == 0)
{
if (GetPlayerScore(playerid) <= 600) return SendClientMessage(playerid, 0xFFFFFFFF, "You need atleast 600 score to become cop!");
if (GetPlayerSkin(playerid) == 267) return SendClientMessage(playerid, 0xFFFFFFFF, "You are cop already!");
SendClientMessage(playerid,0xFFFFFFFF,"You Are Now Cop!");
SetPlayerSkin(playerid, 267);
GivePlayerWeapon(playerid, 22, 100);
GivePlayerWeapon(playerid, 3, 1);
SetPlayerColor(playerid,COLOR_BLUE);
return 1;
}