please Correct it
#4

pawn Код:
if(!strcmp(cmdtext, "/v522"))
{
    new
        veh,
        Float:x,
        Float:y,
        Float:z,
        Float:ang;
    GetPlayerPos(playerid, x, y, z);
    GetPlayerFacingAngle(playerid, ang);
    veh = CreateVehicle(522, x, y, z+0.3, ang, -1,-1,-1);
    PutPlayerInVehicle(playerid, veh, 0);
    SendClientMessage(playerid, 0xFFFFFFAA, "You have Spawn NRG Vehicle");
    return 1;
}
Is how it should be done. Probably better if "veh" is a global array so each player can have a vehicle (and be able to manipulate it)
Reply


Messages In This Thread
please Correct it - by AzTeCaS - 23.11.2010, 09:17
Re: please Correct it - by cessil - 23.11.2010, 09:18
Re: please Correct it - by Retardedwolf - 23.11.2010, 09:18
Re: please Correct it - by iggy1 - 23.11.2010, 09:54

Forum Jump:


Users browsing this thread: 2 Guest(s)