Hello this is my first Map create with MTA Map Editor. Pics:
Код:
if(strcmp(cmdtext, "/kartrace", 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,-1054.50390625,167.0634765625,1.75);
GameTextForPlayer(playerid,"/kartrace...",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,-1054.50390625,167.0634765625,1.75);
format(fString, 128, "%s (ID:%d) Teleported to /kartrace", pName, playerid);
GameTextForPlayer(playerid,"/kartrace...",2500,3);
SendClientMessageToAll(0x33CCFFAA, fString);
}
return 1;
}
Good one. Keep on working.