Quote:
Originally Posted by DjonathaTM
Cara, a sua variavel
'-'
Tipo
Pinfo[playerid][LevelADMIN]
Vocк nгo sabe nada sobre variбveis?
|
eh issto ??
if(PlayerInfo[playerid][NoEvento] == 0)
{
new Float
, Float:y, Float:z, Float:rot, vID, pdName[24];
new engine,lights,alarm,doors,bonnet,boot,objective;
GetPlayerPos(playerid, x, y, z);
GetPlayerFacingAngle(playerid, rot);
vID = Vehicle_Create(vehiclemodel, x, y, z, rot, color1, color2, 600);
PutPlayerInVehicle(playerid, vID, 0);
// Turn on the engine and lights
GetVehicleParamsEx(vID, engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(vID, 1, 1, alarm, doors, bonnet, boot, objective);
// Store the player's current location and interior-id, otherwise anti-airbreak hack code could kick you
GetPlayerPos(playerid, APlayerData[playerid][PreviousX], APlayerData[playerid][PreviousY], APlayerData[playerid][PreviousZ]);
APlayerData[playerid][PreviousInt] = GetPlayerInterior(playerid);
// Also, after spawning a vehicle, reset FirstCar (so next time, the list starts from the start)
APlayerData[playerid][DialogCarFirstCar] = 0;
GetPlayerName(playerid, pdName, 24);
if(APlayerData[playerid][PlayerLevel] == 1)
{
format(Alla, 128, "{FFD700}[VIP] O jogador {FFFFFF}%s {FFD700}criou um(a) {FFFFFF}%s{FFD700}.", pdName, Vehicles[GetVehicleModel(GetPlayerVehicleID(playerid))-400]);
SendClientMessageToAll(-1, Alla);
}
if(APlayerData[playerid][PlayerLevel] >= 2)
{
format(Alla, 128, "{a9c4e4}O Administrador {FFFFFF}%s {a9c4e4}criou um(a) {FFFFFF}%s{a9c4e4}.", pdName, Vehicles[GetVehicleModel(GetPlayerVehicleID(playerid))-400]);
SendClientMessageToAll(-1, Alla);
}
}
return 1;
}