RC DM - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: RC DM (
/showthread.php?tid=66002)
RC DM -
GORE - 18.02.2009
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...
Re: RC DM -
beckzy - 18.02.2009
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);
Re: RC DM -
GORE - 19.02.2009
can you show me on a pawno how to do it? i have try it and its good but its isint work all time
Re: RC DM -
LarzI - 19.02.2009
if you just put this in a command, it should work...
Re: RC DM -
Nimphious - 19.02.2009
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.