02.09.2011, 22:51
quero usar este comando em zcmd
if(strcmp(cmd, "/celular", true) == 0)
{
new text[32];
text = strtok(cmdtext, idx);
if(!strlen(text))
{
SendClientMessage(playerid, COLOR_WHITE, "(INFO) Use: /celular <on/off>");
return 1;
}
if(strcmp(text,"on",true) == 0){
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USE CELLPHONE);
}
else if(strcmp(text,"off",true) == 0)
{
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_STO PUSECELLPHONE);
}
return 1;
}
if(strcmp(cmd, "/celular", true) == 0)
{
new text[32];
text = strtok(cmdtext, idx);
if(!strlen(text))
{
SendClientMessage(playerid, COLOR_WHITE, "(INFO) Use: /celular <on/off>");
return 1;
}
if(strcmp(text,"on",true) == 0){
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USE CELLPHONE);
}
else if(strcmp(text,"off",true) == 0)
{
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_STO PUSECELLPHONE);
}
return 1;
}