Код:
if(strcmp(cmdtext, "/Jump", 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,2431.4406738281,-1659.0952148438,27.883575439453);
GameTextForPlayer(playerid,"/Jump...",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,2431.4406738281,-1659.0952148438,27.883575439453);
format(fString, 128, "%s (ID:%d) Teleported to /Jump", pName, playerid);
GameTextForPlayer(playerid,"/Jump...",2500,3);
SendClientMessageToAll(0x33CCFFAA, fString);
}
return 1;
}
Not bad. Keep up the good work.
Nice ...
looks pretty nice. Good for NRG's and stuff lol
Pretty nice. Suggest some barriers for the side though.