29.09.2009, 16:16
Hello this is my second Map created with MTA Map Editor. Pics:
Downloads:
Pastebin:
Pastebin
SolidFiles:
Teleport cmd:
Downloads:
Pastebin:
Pastebin
SolidFiles:
Teleport cmd:
Code:
if(strcmp(cmdtext, "/oa", true) == 0) { if(IsPlayerInAnyVehicle(playerid)) { new Float:X; new Float:Y; new Float:Z; new VehicleID; GetPlayerPos(playerid, X, Y, Z); VehicleID = GetPlayerVehicleID(playerid); SetPlayerInterior(playerid,0); SetVehiclePos(VehicleID,404.49334716797,2461.439453125,15.5); GameTextForPlayer(playerid,"/OldAirport...",2500,3); } else { new Float:X; new Float:Y; new Float:Z; new fString[128]; new pName[20]; GetPlayerPos(playerid, X, Y, Z); GetPlayerName(playerid, pName, 20); SetPlayerInterior(playerid,0); SetPlayerPos(playerid,404.49334716797,2461.439453125,15.5); format(fString, 128, "%s (ID:%d) Teleported to /oa", pName, playerid); GameTextForPlayer(playerid,"/OldAirport...",2500,3); SendClientMessageToAll(0x33CCFFAA, fString); } return 1; }