19.01.2013, 20:02
pawn Код:
CarSpawner(playerid, model)
{
if(model == 432 || model == 520 || model == 425)
{
if(PlayerInfo[playerid][Level] <= 3)
{
return LangMSG(playerid, -1, ""er"Only admins can spawn this", ""er"Nur Admins kцnnen das spawnen");
}
}
if(PlayerInfo[playerid][Vehicle] != -1)
{
DestroyVehicle(PlayerInfo[playerid][Vehicle]);
PlayerInfo[playerid][Vehicle] = -1;
}
new
Float:POS[4],
string[18];
GetPlayerPos(playerid, POS[0], POS[1], POS[2]);
GetPlayerFacingAngle(playerid, POS[3]);
PlayerInfo[playerid][Vehicle] = CreateVehicle(model, POS[0], POS[1], POS[2], POS[3], -1, -1, -1);
SetVehicleVirtualWorld(PlayerInfo[playerid][Vehicle], GetPlayerVirtualWorld(playerid));
LinkVehicleToInterior(PlayerInfo[playerid][Vehicle], GetPlayerInterior(playerid));
SetVehicleNumberPlate(PlayerInfo[playerid][Vehicle], ""red"NGS");
SetVehicleToRespawn(PlayerInfo[playerid][Vehicle]);
PutPlayerInVehicle(playerid, PlayerInfo[playerid][Vehicle], 0);
return 1;
}
No its working on other big servers too.