[HELP]Little help with Enable/Disable
#1

hello there,
i made a shop and how i make a cmd when i type /close so my shop close and when i type /on so shop on

please help me here and get a reputaion.

Код:
ShowPlayerDialogBox(playerid,dialogid,..................................................................);
Reply
#2

pawn Код:
//Top of the GameMode(s) script
new GameModeID=*YOURGAMEMODEID*;
//Somewhere:
CallRemoteFunction("gmShop", "i", GameModeID);

// In the admin script:
new gmID;
forward gmShop(GameModeID);

//Somewhere else:
public gmShop(GameModeID);
{
gmID = GameModeID;
return 1;
}

// You use it like this:
//(I am assuming you are using ZCMD.)

CMD:shop(playerid, params[])
{
switch(gmID)
case 1,2,3,4*OTHER GM ID's*: return SendClientMessage(blabla);
case 5,6,7*OTHER GM ID'
s*: return ShowPlayerDialogBox(blabla);
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)