22.07.2016, 00:17
Hello, i used S0biet to can make a tele cmds to liberty city and brothel and iam do /save and take pos and add it in tele cmd then when i use it in game iam tele to air not in tele place
cmd:
Код:
AddPlayerClass(299,-733.5562,499.5130,1373.7446,156.7617,0,0,0,0,0,0); // liberty city
Код:
CMD:liberty(playerid,params[]) { if(PlayerInfo[playerid][Jailed] == 1) return SendMessageToPlayer(playerid,COLOR_BRIGHTRED,"You cannot escape your punishment!"); TeleTimer[playerid] = SetTimerEx("ttimer", 1000, true, "i",playerid); tseconds[playerid] = 6; format(tstring,45,"You Must wait %d seconds before teleporting", tseconds[playerid]-1); if(PlayerInfo[playerid][Level] == 0) SendMessageToPlayer(playerid,COLOR_LIGHTBLUE, tstring); vCount[playerid] = 1; Tx[playerid] = -733.5562; Ty[playerid] = 499.5130; Tz[playerid] = 1373.7446; Ti[playerid] = 0; ResetPlayerWeapons(playerid); SetPlayerHealth(playerid,100); GivePlayerWeapon(playerid,30,2000); GivePlayerWeapon(playerid,29,2000); new string[128]; new bdname[MAX_PLAYER_NAME]; format(telestring,43,"~w~] Liberty City ]"); GetPlayerName(playerid, bdname, sizeof(bdname)); format(string, sizeof(string), "[TELE]:%s Has Just Teleported To Liberty City /liberty", bdname); SendClientMessageToAll(lightblue, string); return 1;}