13.09.2012, 22:57
(
Последний раз редактировалось HuSs3n; 14.09.2012 в 00:14.
)
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/neon", cmdtext, true, 10) == 0)
{
if (PlayerInfo[playerid][pDonateRank] < 1) return SendClientMessage(playerid,0xFFFFFFFF,"Your Rank is Low");
if(IsPlayerInAnyVehicle(playerid))
{
if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER)
{
SendClientMessage(playerid, COLOR_WHITE, " You are not the driver");
return 1;
}
ShowPlayerDialog(playerid, NEON, DIALOG_STYLE_LIST, "Choose your neon colour","Blue\nGreen\nYellow\nWhite\nPink\nTurn off Neon","Add","Close");
}
else
{
SendClientMessage(playerid, COLOR_WHITE, " You are not in a vehicle");
}
return 1;
}
return 0;
}