05.03.2013, 18:12
Hello there
You are either not skilled enough or lazy enough for such easy transform?
Well.. Not my problem, though.
This code gives all player vehicle via CarSpawner(id, vehid) (perhaps??)
Making it look more cooler or add some more stuff - its all on your hands now.
Greetz,
LetsOWN
You are either not skilled enough or lazy enough for such easy transform?
Well.. Not my problem, though.
pawn Код:
dcmd_givecar(playerid,params[])
{
if(AccInfo[playerid][Level] >= 3 || IsPlayerAdmin(playerid))
{
for(new iPlayer = 0; iPlayer != MAX_PLAYERS; i++)
{
if(IsPlayerConnected(iPlayer))
{
// Major code goes here.
SendCommandToAdmins(playerid,"GiveCar");
new
Float:x,
Float:y,
Float:z,
tmpVehId
;
GetPlayerPos(player1,x,y,z);
if(IsPlayerInAnyVehicle(iPlayer))
{
tmpVehId = GetPlayerVehicleID(iPlayer);
RemovePlayerFromVehicle(iPlayer);
SetVehicleToRespawn(tmpVehId);
}
CarSpawner(player1,415);
}
}
}
}
Making it look more cooler or add some more stuff - its all on your hands now.
Greetz,
LetsOWN