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;
}
}
if(!strcmp(cmdtext, "/cellin", true, 7)==0) { 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)==0) { 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; }
Originally Posted by DJDhan
Pff Use this:
Код:
if(!strcmp(cmdtext, "/cellin", true, 7)==0) { 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)==0) { 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; } |
Originally Posted by IcyBlight
12-hour bump.
|