30.07.2010, 18:50
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
dcmd(nrg,3,cmdtext); // 3 because "nrg" has 3 letters
return 0;
}
dcmd_nrg(playerid,params[])
{
new Float:X, Float:Y, Float:Z;
#pragma unused params
GetPlayerPos(playerid,X,Y,Z);
AddStaticVehicle(/*NRG VEHICLE ID*/,X,Y,Z,0,0,0); // 1st 0 is for ROTATION, 2nd one and 3rd are for colors, this will be black
return 1;
}