COMMAND:drift2(playerid, params[])
{
SetPlayerInterior(playerid,0);
if (GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
LinkVehicleToInterior(GetPlayerVehicleID(playerid),0);
SetVehiclePos(GetPlayerVehicleID(playerid),1995.8274,2243.7427,25.6410);
SetVehicleZAngle(GetPlayerVehicleID(playerid),221.976);
}
else
{
SetPlayerPos(playerid,1995.8274,2243.7427,25.6410);
SetPlayerFacingAngle(playerid,221.976);
}
SendClientMessage(playerid,COLOR_BLUE,\"Elteleportáltál a Drift pályára.\");
new string3[70];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string3, sizeof(string3), \"%s(%d) Elment Driftelni. (/drift2)\", name,playerid);
SendClientMessageToAll(yellow, string3);
SaveToFile(\"Teleports\",string3);
return 1;
}