01.06.2010, 22:36
Quote:
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; } |