if(CurrentMenu == CopOnD)
{
switch(row)
{
case 0:
{
gTeam[playerid] = TEAM_WSPD;
SetPlayerColor(playerid, COLOR_BLUE);
SetPlayerSkin(playerid, 71);
GivePlayerWeapon(playerid,24,100);
GivePlayerWeapon(playerid,3,1);
SendClientMessage(playerid, COLOR_WSPD, "You're on Cop Duty, shoot ($100) or jail ($150) some criminals");
}
case 1:
{
gTeam[playerid] = TEAM_WSPD;
SetPlayerColor(playerid, COLOR_BLUE);
SetPlayerSkin(playerid, 280);
GivePlayerWeapon(playerid,24,100);
GivePlayerWeapon(playerid,3,1);
SendClientMessage(playerid, COLOR_WSPD, "You're on Cop Duty, shoot ($100) or jail ($150) some criminals");
}
case 2:
{
gTeam[playerid] = TEAM_WSPD;
SetPlayerColor(playerid, COLOR_WSPD);
SetPlayerSkin(playerid, 281);
GivePlayerWeapon(playerid,24,100);
GivePlayerWeapon(playerid,3,1);
SendClientMessage(playerid, COLOR_BLUE, "You're on Cop Duty, shoot ($100) or jail ($150) some criminals");
}
//etc...
if(CurrentMenu == CopOnD)
{
switch(row)
{
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");
case 0:
{
SetPlayerSkin(playerid, 71);
}
case 1:
{
SetPlayerSkin(playerid, 280);
}
case 2:
{
SetPlayerSkin(playerid, 281);
}
if(CurrentMenu == CopOnD)
{
switch(row)
{
case 0:SetPlayerSkin(playerid, 71);
case 1:SetPlayerSkin(playerid, 280);
case 2:SetPlayerSkin(playerid, 281);
}
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");
}
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;
}
if(CurrentMenu == CopOnD)
{
switch(row)
{
case 0:
{
SetPlayerSkin(playerid, 71);
}
case 1:
{
SetPlayerSkin(playerid, 280);
}
case 2:
{
SetPlayerSkin(playerid, 281);
}
Originally Posted by Backwardsman97
What if the player exits the menu though?
|
Originally Posted by ►Peter Corneile◄
Quote:
|
Originally Posted by Niixie
|