09.05.2009, 19:40
As basic as it gets:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/nrg", cmdtext, true, 4) == 0)
{
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
CreateVehicle(522, X + 2, Y, Z, 0.0, 0, 0, 10);
return 1;
}
return 0;
}