20.03.2010, 09:46
im trynna make a /call 411 so players can look up other player numbers how can i make it so it can do it here is my command
well that part
what can i add to make it...so player can....plz help urgent...
well that part
Код:
GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "* %s takes out a cellphone.", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); new phonenumb = strval(tmp); if(phonenumb == 411) { SendClientMessage(playerid, COLOR_WHITE, "HINT: You now use T to talk on your cellphone, type /hangup to hang up"); SendClientMessage(playerid, COLOR_ALLDEPT, "Who number does you require to look up?"); Mobile[playerid] = 411; return 1; } if(phonenumb == PlayerInfo[playerid][pPnumber]) { SendClientMessage(playerid, COLOR_GRAD2, " You just get a busy tone..."); return 1; } if(Mobile[playerid] != 255) { SendClientMessage(playerid, COLOR_GRAD2, " You are already on a call..."); return 1; }