03.11.2011, 18:14
Tem um no prуprio tуpico:
Caso queira algo diferente, envie uma PM para o dono do tуpico e peзa ajuda, ou entгo espere ele postar aqui.
pawn Код:
new Menu:NEON_MENU;
public OnGameModeExit()
{
NEON_MENU = CreateMenu("Neons", 1, 50.0, 180.0, 130.0, 130.0);
AddMenuItem(NEON_MENU, 0, "Branco");
AddMenuItem(NEON_MENU, 0, "Azul");
AddMenuItem(NEON_MENU, 0, "Verde");
AddMenuItem(NEON_MENU, 0, "Rosa");
AddMenuItem(NEON_MENU, 0, "Vermelho");
AddMenuItem(NEON_MENU, 0, "Amarelo");
return 1;
}
public OnPlayerSelectedMenuRow(playerid, row)
{
new Menu:Current = GetPlayerMenu(playerid);
if(Current == NEON_MENU)
{
if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SendClientMessage(playerid, -1, "Vocк nгo estб em um veнculo.");
switch(row)
{
case 0:
{
AttachNeonToVehicle(GetPlayerVehicleID(playerid), NEON_WHITE);
}
case 1:
{
AttachNeonToVehicle(GetPlayerVehicleID(playerid), NEON_BLUE);
}
case 2:
{
AttachNeonToVehicle(GetPlayerVehicleID(playerid), NEON_GREEN);
}
case 3:
{
AttachNeonToVehicle(GetPlayerVehicleID(playerid), NEON_PINK);
}
case 4:
{
AttachNeonToVehicle(GetPlayerVehicleID(playerid), NEON_RED);
}
case 5:
{
AttachNeonToVehicle(GetPlayerVehicleID(playerid), NEON_YELLOW);
}
}
}
return 1;
}
CMD:neon(playerid, params[])
return ShowMenuForPlayer(NEON_MENU, playerid);