08.09.2013, 13:12
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (!strcmp("/getinf", cmdtext, true))
{
new Float:x, Float:y, Float:z; // You have to define x, y and z as float because they are decimal numbers.
GetPlayerPos(playerid, x, y, z);
CreateVehicle(411, x, y, z, 0, 0, 5);
SendClientMessage(playerid, COLOR_GREEN, "You have been teleported Infernus to your position");
return 1;
} // Also removed an extra brace + return 1 as they were unecessary.
return 0;
}