23.06.2012, 13:10
************/79ltguu
i made like that but it is based upon textdrws its like dialog but more like menu
i made like that but it is based upon textdrws its like dialog but more like menu
You have no need for a timer at all. You simply perform those case checks on Player[playerid][pRank] when you update or change that variable's value. This can be done easily if you just write one function to do it:
pawn Code:
|
Okay i need a scripter for my Server my server Gamemod Is World At War i need fix some skins and add some classes
|
if(strcmp( cmd, "/cmds", true ) == 0 )
{
ShowPlayerDialog(playerid, DIAREGLAS, DIALOG_STYLE_MSGBOX, "Commands", "{FF0000}/v-Spawn a vehicle of your choice.\n{FF0000}/w-List of Weapons.\n{FF0000}/pm [ID][TEXT]- to PM a player.\n{FF0000}/change-hide the blue bar at bottom of screen.\n{FF0000}/FLY [0-1]- 0(off) 1(on).\n{FF0000}/infernus-Spawn an infernus.\n{FF0000}/PCJ- Spawn a PCJ-600.\n{FF0000}/CHANGENAME- Change name in server without having to leave.\n{FF0000}/TIME-Switch to Day or night.\n{FF0000}/PJY-Attach objects to your player.\n{FF0000}/ACTIONS- list of animations.\n{FF0000}/MUSIC-Listen to music.\n{FF0000}/MINIGAMES-Do minigames.\n{FF0000}/COLORS-Change color of username on CHAT.","OK","CLOSE");
return 1;
}
CMD:ann(playerid,params[])
{
if(PlayerInfo[playerid][AdminLevel] >= 2)
{
if(IsPlayerConnected(playerid))
{
new Announce[50];
if(!sscanf(params, "s[50]",Announce))
{
GameTextForAll(Announce,5000,3);
}
else SendClientMessage(playerid,COLOR_YELLOW,"USAGE: /ann <text>");
}
else SendClientMessage(playerid,red,"ERROR: You must be logged in to use this command!");
}
else SendClientMessage(playerid,red,"ERROR: You must be an Admin level 2 or higher to perform this command!");
return 1;
}