/givecar doesnt work
#2

pawn Код:
CMD:givecar(playerid,params[])
{
    new carid;
    new id;
    new Float:X, Float:Y, Float:Z, Float:angle;
    if(sscanf(params,"du",carid, id)) return SendClientMessage(playerid,-1,"Error: - /givecar [car id] [player id]"); // checking does sscanf found integer parameter
    GetPlayerPos(id, X, Y, Z);
    GetPlayerFacingAngle(id, angle);
    CreateVehicle(carid, X, Y, Z, angle, 0, 1, 60);
    PutPlayerInVehicle(id, carid, 0);
    return 1;
}
Reply


Messages In This Thread
/givecar doesnt work - by thefatshizms - 31.05.2012, 16:43
Re: /givecar doesnt work - by HuSs3n - 31.05.2012, 17:00
Re: /givecar doesnt work - by thefatshizms - 31.05.2012, 17:07
Re: /givecar doesnt work - by MadeMan - 31.05.2012, 17:10
Re: /givecar doesnt work - by thefatshizms - 31.05.2012, 17:19
Re: /givecar doesnt work - by MadeMan - 01.06.2012, 14:39
Re: /givecar doesnt work - by thefatshizms - 01.06.2012, 14:47
Re: /givecar doesnt work - by MadeMan - 01.06.2012, 14:51
Re: /givecar doesnt work - by thefatshizms - 01.06.2012, 15:04
Re: /givecar doesnt work - by [D]ry[D]esert - 01.06.2012, 15:28

Forum Jump:


Users browsing this thread: 3 Guest(s)