04.10.2014, 04:56
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/gunpack1", cmdtext, true, 10) == 0)
{
GameTextForPlayer(playerid,"any comment you want when they use cmd!!",5000,2);
GivePlayerWeapon(playerid,34,400);
GivePlayerWeapon(playerid,35,400);
GivePlayerWeapon(playerid,36,400);
GivePlayerWeapon(playerid,37,400);
GivePlayerWeapon(playerid,16,400);
GivePlayerWeapon(playerid,17,400);
GivePlayerWeapon(playerid,18,400);
GivePlayerWeapon(playerid,3,400);
GivePlayerWeapon(playerid,4,400);
GivePlayerWeapon(playerid,5,400);
GivePlayerWeapon(playerid,7,400);
GivePlayerWeapon(playerid,8,400);
return 1;
}
return 0;
pawn Код:
if (GetPlayerScore(playerid) >= 0 && GetPlayerScore(playerid) <= 500)
{
SendClientMessage(playerid, COLOR_RED,"Your unlock gunpack - 1");
}
if (GetPlayerScore(playerid) >= 100)