17.02.2012, 23:51
/facepalm. Don't post your whole script. I highly doubt anyone will wanna fumble through a whole gamemode to fix 69523549826349875234 errors.
Replace this.
With this.
Replace this.
pawn Код:
CMD:nrg(playerid,params[]){
if(PlayerDm[playerid] == 1) return GameTextForPlayer(playerid, "Eroare: Nu poti folosi comanda in DM !",5000,5);
else
{
if(IsPlayerInAnyVehicle(playerid))
SendClientMessage(playerid, COLOR_RED, "EROARE: Esti deja intr-un vehicul !");
else
{
new Float:x, nrg,Float:y, Float:z, Float:angle;
GetPlayerPos(playerid, x, y, z);
nrg = CreateVehicle(522, x +2, y, z, angle, 0, 0, 60);
SendClientMessage(playerid, COLOR_YELLOW, "NRG-ul tau personal a fost creat!");
PutPlayerInVehicle(playerid, nrg, 0);
GameTextForPlayer(playerid, "~w~Personal ~b~N~g~R~p~G ~w~ was ~y~created~w~!",3000,5);
}
}
return 1;
}
pawn Код:
CMD:nrg(playerid,params[]){
if(PlayerDm[playerid] == 1) return GameTextForPlayer(playerid, "Eroare: Nu poti folosi comanda in DM !",5000,5);
else
{
if(IsPlayerInAnyVehicle(playerid))
SendClientMessage(playerid, COLOR_RED, "EROARE: Esti deja intr-un vehicul !");
else
{
new Float:x, nrg,Float:y, Float:z, Float:angle;
GetPlayerPos(playerid, x, y, z);
nrg = CreateVehicle(522, x +2, y, z, angle, 0, 0, 60);
SendClientMessage(playerid, COLOR_YELLOW, "NRG-ul tau personal a fost creat!");
PutPlayerInVehicle(playerid, nrg, 0);
GameTextForPlayer(playerid, "~w~Personal ~b~N~g~R~p~G ~w~ was ~y~created~w~!",3000,5);
}
return 1;
}

