#1

i wanna do a RC dm and i dont know how to do thath if somebody teleport to /RCdm to gove him automaticaly a RC car...
Reply
#2

new Float, Float:y, Float:z, Float:a;
GetPlayerPos(playerid, x, y, z);
GetPlayerFacingAngle(playerid, a);
PutPlayerInVehicle(playerid, CreateVehicle(464, x, y, z, a, -1, -1, -1)), 0);
Reply
#3

can you show me on a pawno how to do it? i have try it and its good but its isint work all time
Reply
#4

if you just put this in a command, it should work...
Reply
#5

Quote:

can you show me on a pawno how to do it? i have try it and its good but its isint work all time

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/rcdm", cmdtext, true, 5) == 0)
    {
       new Float:x, Float:y, Float:z, Float:a;
        GetPlayerPos(playerid, x, y, z);
        GetPlayerFacingAngle(playerid, a);
       PutPlayerInVehicle(playerid, CreateVehicle(464, x, y, z, a, -1, -1, -1)), 0);
        return 1;
    }
    return 1;
}
that should do it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)