02.05.2012, 17:56
pawn Код:
if (strcmp(cmd, "/extele", true) == 0)
{
if(PlayerInfo[playerid][pMembro] == 3 || PlayerInfo[playerid][pLider] == 3)
{
if(PlayerToPoint(2.0, playerid, 1878.8372,-2367.2734,13.5547))
{
if(IsPlayerInVehicle(playerid))
{
new CarID = GetPlayerVehicleID(playerid);
SetVehiclePos(CarID, -1429.8191,467.6045,7.1875);
PutPlayerInVehicle(playerid, CarID, 0);
}
else
SetPlayerPos(playerid, -1429.8191,467.6045,7.1875);
}
if(PlayerToPoint(2.0, playerid, -1429.8191,467.6045,7.1875))
{
if(IsPlayerInVehicle(playerid))
{
new CarID = GetPlayerVehicleID(playerid);
SetVehiclePos(CarID, 1878.8372,-2367.2734,13.5547);
PutPlayerInVehicle(playerid, CarID, 0);
}
else
SetPlayerPos(playerid, 1878.8372,-2367.2734,13.5547);
}
}
return 1;
}