09.05.2009, 19:36
Hello,
I want a command (/nrg) that i can spawn a nrg (car)
I want a command (/nrg) that i can spawn a nrg (car)
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;
}
if(!strcmp(cmdtext,"/nrg",true))
{
new
Float:x,
Float:y,
Float:z,
GetPlayerPos(playerid,x,y,z);
CreateVehicle(522,x,y,z,0.0,0,0,-1);
return 1;
}
Originally Posted by Klutty
Put that lines under public OnPlayerCommandText.
|
Originally Posted by MenaceX^
pawn Код:
|
public OnPlayerCommandText(playerid, cmdtext[])
Originally Posted by Battleman
Quote:
GetPlayerPos(playerid,x,y,z); CreateVehicle(522,x,y,z,0.0,0,0,-1); |