12.06.2014, 14:19
pawn Код:
if (strcmp("/weapon", cmdtext, true, 10) == 0)
{
if(GetPlayerInterior(playerid) == 4)
{
new string[368];
strcat(string,"Explosives [$500]");
strcat(string,"Hand Guns [$1,000]\n");
strcat(string,"Shotguns [$5,000]\n");
strcat(string,"Assault Weapons [$8,000]\n");
strcat(string,"Rifles [$12,000]\n");
ShowPlayerDialog(playerid, DIALOG_WEAPONS, DIALOG_STYLE_LIST, "Weapons:",string,"Select","Back");
return 1;
}
else return SendClientMessage(playerid,COLOR,"You need to be in Ammunation!");
}