17.09.2013, 10:10
Heyo Guys,
Im trying to use command text, to teleport car to the player who just command the text.
Its working but ain't teleporting Infernus to the player who just type it,
what im want is that player who type /infernus he get infernus and he is in the vehicle = PutPlayerInVehicle(playerid, 411, 0);
IM New so please try to explain me!
Thanks!
Im trying to use command text, to teleport car to the player who just command the text.
PHP код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/infernus", cmdtext, true, 10) == 0)
{
new Float:x, Float:y, Float:z, Float:a;
GetPlayerPos(playerid,x,y,z);
GetPlayerFacingAngle(playerid, a);
PutPlayerInVehicle(playerid, 411, 0);
SendClientMessage(playerid, 0xADD8E6FF, "You have been teleported Infernus to your position.");
return 1;
}
return 0;
}
what im want is that player who type /infernus he get infernus and he is in the vehicle = PutPlayerInVehicle(playerid, 411, 0);
IM New so please try to explain me!
Thanks!
![Smiley](images/smilies/smile.png)