18.02.2009, 11:52
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...
can you show me on a pawno how to do it? i have try it and its good but its isint work all time |
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;
}