01.06.2010, 18:10
Could someone explain to me why /cellout uses /cellin? Or why /fix calls the /fix command, but also goes "Faction: x" - I realize it's because the commands are interfering, but this is pissing me off. Halp plz!
pawn Код:
if(!strcmp(cmdtext, "/cellin", true, 7))
{
if(TakingTut[playerid] == 1) return SendClientMessage(playerid, COLOR_GREY, "You are viewing the tutorial. You cannot use this command now.");
if(!IsPlayerInAnyVehicle(playerid))
{
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USECELLPHONE);
return 1;
}
}
if(!strcmp(cmdtext, "/cellout", true, 8))
{
if(TakingTut[playerid] == 1) return SendClientMessage(playerid, COLOR_GREY, "You are viewing the tutorial. You cannot use this command now.");
if(!IsPlayerInAnyVehicle(playerid))
{
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_STOPUSECELLPHONE);
return 1;
}
}