30.09.2009, 11:35
Hello this is my third Map created with MTA Map Editor. Pics:
Downloads:
Pastebin:
Pastebin
SolidFiles:
Teleport cmd:
Downloads:
Pastebin:
Pastebin
SolidFiles:
Teleport cmd:
Код:
if(strcmp(cmdtext, "/drag", 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,-3081.7578125,-483.06115722656,2.6840419769287); GameTextForPlayer(playerid,"/Drag...",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,-3081.7578125,-483.06115722656,2.6840419769287); format(fString, 128, "%s (ID:%d) Teleported to /drag", pName, playerid); GameTextForPlayer(playerid,"/Drag...",2500,3); SendClientMessageToAll(0x33CCFFAA, fString); } return 1; }