[AJUDA] zcmd
#2

pawn Код:
CMD:celular(playerid, params[])
{
new text[32];
text = strtok(params, idx);
if(!strlen(text)) return SendClientMessage(playerid, COLOR_WHITE, "(INFO) Use: /celular <on/off>");
if(strcmp(text,"on",true) == 0) return SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USE CELLPHONE);
if(strcmp(text,"off",true) == 0) return SetPlayerSpecialAction(playerid,SPECIAL_ACTION_STO PUSECELLPHONE);
return 1;
}
Obs: em Zcmd,nao se usa CmdText,e sim Params.
Reply


Messages In This Thread
[AJUDA] zcmd - by 588321 - 02.09.2011, 22:51
Re: [AJUDA] zcmd - by Dolby - 02.09.2011, 23:01
Re: [AJUDA] zcmd - by Dolby - 02.09.2011, 23:06
Re: [AJUDA] zcmd - by 588321 - 02.09.2011, 23:13
Re: [AJUDA] zcmd - by Dolby - 02.09.2011, 23:13
Re: [AJUDA] zcmd - by noobre - 02.09.2011, 23:23
Re: [AJUDA] zcmd - by [S]trong - 02.09.2011, 23:31
Re: [AJUDA] zcmd - by 588321 - 02.09.2011, 23:32
Re: [AJUDA] zcmd - by [S]trong - 02.09.2011, 23:36
Re: [AJUDA] zcmd - by 588321 - 02.09.2011, 23:39

Forum Jump:


Users browsing this thread: 1 Guest(s)