23.05.2009, 12:15
pawn Код:
public OnPlayerSelectedMenuRow(playerid, row)
{
new Menu:CurrentMenu = GetPlayerMenu(playerid);
if(CurrentMenu == lvpdmenu)
{
switch(row)
{
case 0: //request
{
gTeam[playerid] = TEAM_LVPD;
SendClientMessage(playerid, 0x00FF00FF, "You are now LVPD, Welcome!");
SetPlayerTeam(playerid, TEAM_LVPD);
}
case 1: //resign
{
gTeam[playerid] = TEAM_CIVIL;
SendClientMessage(playerid, 0x00FF00FF, "You are no longer LVPD");
SetPlayerTeam(playerid, TEAM_CIVIL);
}
}
}
return 1;
}
Thnx for your reply's already
Greetz Rizzy