if(strcmp(cmdtext, "/drift6", true)==0) { new name[ MAX_PLAYER_NAME]; new string[128]; GetPlayerName( playerid, name, sizeof(name)); if(IsPlayerInAnyVehicle(playerid)) { if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { SetVehiclePos(GetPlayerVehicleID(playerid), 1886.9543,1813.2212,18.9339); SetVehicleZAngle(GetPlayerVehicleID(playerid), 178.7448); SetCameraBehindPlayer(playerid); format( string, sizeof(string), "[TELEPORT] Player %s has gone to drift 6 [/drift6]",name); SendClientMessageToAll( COLOR_GREEN,string); } else { SendClientMessage(playerid,0xFFFF00AA, "ERROR: You need to be the driver!"); } } else { SetPlayerPos(playerid, 1886.9543,1813.2212,18.9339); SetPlayerFacingAngle(playerid, 110.5445); SetCameraBehindPlayer(playerid); format( string, sizeof(string), "[TELEPORT] Player %s has gone to drift 6 [/drift6]",name); SendClientMessageToAll( COLOR_GREEN,string); } return 1; }
that actually isnt the solution i had zcmd running and using onplayercommandtext thanks anyways.
|