27.11.2009, 17:07
Why dont you put these lines in the command that you type to show menu ?
Something like this should do it and then remove the lines from the cases like this
pawn Код:
if(strcmp("/menu",cmdtext,5) == 0)
{
gTeam[playerid] = TEAM_WSPD;
SetPlayerColor(playerid, COLOR_BLUE);
GivePlayerWeapon(playerid,24,100);
GivePlayerWeapon(playerid,3,1);
SendClientMessage(playerid, COLOR_WSPD, "You're on Cop Duty, shoot ($100) or jail ($150) some criminals")
ShowMenuForPlayer(CopOnD,playerid);
return 1;
}
pawn Код:
if(CurrentMenu == CopOnD)
{
switch(row)
{
case 0:
{
SetPlayerSkin(playerid, 71);
}
case 1:
{
SetPlayerSkin(playerid, 280);
}
case 2:
{
SetPlayerSkin(playerid, 281);
}