29.09.2011, 11:16
How i add Teleports on Dialog box when player type /teleports a box open and when he click on teleport name he direct goto area dont need to type teleport name like /dday or /twist
i mean i need lisiten menu
i mean i need lisiten menu
Код:
if(strcmp(cmdtext, "/dday1", true) == 0) { new name[MAX_PLAYER_NAME]; new msg[256]; SetPlayerPos(playerid,2827.3567,-2143.6956,11.0872); GameTextForPlayer(playerid, "~w~Welcome To D-Day1 Deathmatch~G~", 5000, 5); GivePlayerWeapon(playerid,29,700);//weapon mp5 GivePlayerWeapon(playerid,31,400);//m4 GivePlayerWeapon(playerid,16,20);//nades GivePlayerWeapon(playerid,23,50000);//pistol GetPlayerName(playerid,name,MAX_PLAYER_NAME); format(msg, sizeof(msg), "TELE: %s has joined D-Day Team 1 (/dday1)",name,playerid); SendClientMessageToAll(COLOR_YELLOW, msg); return 1; } if(strcmp(cmdtext,"/twist",true)==0) { new name[MAX_PLAYER_NAME]; new msg[256]; new vehicleid = GetPlayerVehicleID(playerid); new State = GetPlayerState(playerid); if(IsPlayerInAnyVehicle(playerid) && State == PLAYER_STATE_DRIVER) { GetPlayerName(playerid,name,MAX_PLAYER_NAME); format(msg, sizeof(msg), "TELE: %s has gone to The Twisty Road (/twist)",name,playerid); SendClientMessageToAll(COLOR_YELLOW, msg); GameTextForPlayer(playerid, "~w~Type /v to spawn cars ~G~", 5000, 5); return SetVehiclePos(vehicleid,947.219055, 142.820281, 302.127349); } GetPlayerName(playerid,name,MAX_PLAYER_NAME); format(msg, sizeof(msg), "TELE: %s has gone to The Twisty Road (/twist)",name,playerid); SendClientMessageToAll(COLOR_YELLOW, msg); SetPlayerPos(playerid,947.219055, 142.820281, 302.127349); GameTextForPlayer(playerid, "~w~Type /v to spawn cars ~G~", 5000, 5); return 1; }