public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp(cmdtext, "/Drift", true) == 0) { SetPlayerInterior(playerid, 0); new State = GetPlayerState(playerid); if(State!=PLAYER_STATE_DRIVER) return SetPlayerPos(playerid,-280.6368,1535.1832,75.3594); if(IsPlayerInAnyVehicle(playerid)) { new Carro = GetPlayerVehicleID(playerid); SetVehiclePos(Carro, -280.6368,1535.1832,75.3594); SetPlayerPos(playerid, -280.6368,1535.1832,75.3594); SetVehicleZAngle(Carro, 128.0556); PutPlayerInVehicle(playerid, Carro, 0); } else return SetPlayerPos(playerid,-280.6368,1535.1832,75.3594); SendClientMessage(playerid, 0x46BBAA00,"Vocк foi para Drift X1!"); new Nome[MAX_PLAYER_NAME], string[40]; GetPlayerName(playerid, Nome, sizeof(Nome)); format(string, sizeof(string), "%s foi para (/drift)", Nome); SendClientMessageToAll(0x46BBAA00, string); return 1; } return 0; } |
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/Drift", true) == 0)
{
SetPlayerInterior(playerid, 0);
new State = GetPlayerState(playerid);
if(State!=PLAYER_STATE_DRIVER) return SetPlayerPos(playerid,-280.6368,1535.1832,75.3594);
if(IsPlayerInAnyVehicle(playerid))
{
new Carro = GetPlayerVehicleID(playerid);
SetVehiclePos(Carro, -280.6368,1535.1832,75.3594);
SetPlayerPos(playerid, -280.6368,1535.1832,75.3594);
SetVehicleZAngle(Carro, 128.0556);
PutPlayerInVehicle(playerid, Carro, 0);
return 1;
}
SetPlayerPos(playerid,-280.6368,1535.1832,75.3594);
SendClientMessage(playerid, 0x46BBAA00,"Vocк foi para Drift X1!");
new Nome[MAX_PLAYER_NAME], string[40];
GetPlayerName(playerid, Nome, sizeof(Nome));
format(string, sizeof(string), "%s foi para (/drift)", Nome);
SendClientMessageToAll(0x46BBAA00, string);
return 1;
}
return 0;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/Drift", true) == 0)
{
SetPlayerInterior(playerid, 0);
SendClientMessage(playerid, 0x46BBAA00,"Vocк foi para Drift X1!");
new Nome[MAX_PLAYER_NAME], string[40];
GetPlayerName(playerid, Nome, sizeof(Nome));
format(string, sizeof(string), "%s foi para (/drift)", Nome);
SendClientMessageToAll(0x46BBAA00, string);
if(IsPlayerInAnyVehicle(playerid))
{
SetVehiclePos(GetPlayerVehicleID(playerid), -280.6368,1535.1832,75.3594);
SetPlayerPos(playerid, -280.6368,1535.1832,75.3594);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 128.0556);
return 1;
}
SetPlayerPos(playerid,-280.6368,1535.1832,75.3594);
return 1;
}
return 0;
}
public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp(cmdtext, "/Drift", true) == 0) { SetPlayerInterior(playerid, 0); SendClientMessage(playerid, 0x46BBAA00,"Vocк foi para Drift X1!"); new Nome[MAX_PLAYER_NAME], string[40]; GetPlayerName(playerid, Nome, sizeof(Nome)); format(string, sizeof(string), "%s foi para (/drift)", Nome); SendClientMessageToAll(0x46BBAA00, string); if(IsPlayerInAnyVehicle(playerid)) { SetVehiclePos(GetPlayerVehicleID(playerid), -280.6368,1535.1832,75.3594); SetPlayerPos(playerid, -280.6368,1535.1832,75.3594); SetVehicleZAngle(GetPlayerVehicleID(playerid), 128.0556); return 1; } SetPlayerPos(playerid,-280.6368,1535.1832,75.3594); return 1; } return 0; } |