22.09.2013, 18:34
It's just a message, no need format and get the vehicle id.
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp("/infernus", cmdtext, true))
{
new Float:x, Float:y, Float:z, Float:a, Infernus;
GetPlayerPos(playerid,x,y,z);
GetPlayerFacingAngle(playerid, a);
Infernus = CreateVehicle(411, x, y, z, a, -1, -1, 60);
PutPlayerInVehicle(playerid, Infernus, 0);
SendClientMessage(playerid,0xDAA520FF,"You have been teleported \"infernus\" to your place");
return 1;
}
return 0;
}