Why this is not working
#2

pawn Код:
if(!strcmp(cmdtext, "/nrg", true))
        {
        new Float:P[4];
        if( NRG[playerid] != 0 ) DestroyVehicle(NRG[playerid]);
        if(IsPlayerInAnyVehicle(playerid))
{
RemovePlayerFromVehicle(playerid);
}
        GetPlayerPos(playerid,P[0],P[1],P[2]);
        GetPlayerFacingAngle(playerid, P[3]);
        NRG[playerid] = CreateVehicle(522,P[0],P[1],P[2], P[3], -1,-1,-1);
        PutPlayerInVehicle(playerid, NRG[playerid], 0);
        LinkVehicleToInterior(NRG[playerid], GetPlayerInterior(playerid));
        SendClientMessage(playerid,0x0066FFAA, "Ai primit nrg-500-ul personal!");
        return 1;
    }
Reply


Messages In This Thread
Why this is not working - by nhunor58 - 04.01.2013, 13:17
Re: Why this is not working - by mineralo - 04.01.2013, 13:39
Re: Why this is not working - by nhunor58 - 04.01.2013, 13:50

Forum Jump:


Users browsing this thread: 1 Guest(s)