03.03.2011, 14:53
Код:
if(strcmp(cmdtext,"/citydrift",true)==0) { SetCameraBehindPlayer(playerid); //DynUpdateStart(playerid); // Avoid falling through object's SetPlayerArmour(playerid,0); ResetPlayerWeapons(playerid); new vehicleid = GetPlayerVehicleID(playerid); new State = GetPlayerState(playerid); if(IsPlayerInAnyVehicle(playerid) && State == PLAYER_STATE_DRIVER) { GameTextForPlayer(playerid,"~r~CityDrift",4000,6); LinkVehicleToInterior(vehicleid,0); SetPlayerInterior(playerid,0); return SetVehiclePos(vehicleid,-2202.8438,-4165.2114,16.4755); } SetPlayerPos(playerid,-2202.8438,-4165.2114,16.4755); SetPlayerInterior(playerid,0); SendClientMessage(playerid,0x00FF00FF,"~~~~~~~~~~~~~~~~~~~~~~~~~~~~"); SendClientMessage(playerid,0x00FF00FF,"~.:In'N'Out Of City Drift:.~"); new name[MAX_PLAYER_NAME]; new msg[256]; GetPlayerName(playerid,name,MAX_PLAYER_NAME); format(msg,sizeof(msg),"%s [%i] has teleported to In'N'Out Of City Drift!~[/citydrift]",name,playerid); SendClientMessageToAll(0xFFFF00FF,msg); return 1; } return 0; }
I want that when i do /citydrift it teleports me and show me the box same like this and on which i click i get the car