help with /nrg
#4

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;
}
hope i helped :P
Reply


Messages In This Thread
help with /nrg - by FireCat - 30.07.2010, 18:41
Re: help with /nrg - by WillyP - 30.07.2010, 18:46
Re: help with /nrg - by FireCat - 30.07.2010, 18:47
Re: help with /nrg - by -Xan- - 30.07.2010, 18:50
Re: help with /nrg - by baske007 - 30.07.2010, 18:51
Re: help with /nrg - by FireCat - 30.07.2010, 18:56
Re: help with /nrg - by -Xan- - 30.07.2010, 18:58
Re: help with /nrg - by FireCat - 30.07.2010, 19:01
Re: help with /nrg - by -Xan- - 30.07.2010, 19:05
Re: help with /nrg - by Cameltoe - 30.07.2010, 19:58

Forum Jump:


Users browsing this thread: 2 Guest(s)