All pastes #673359 Raw Edit

Stuff

public text v1 · immutable
#673359 ·published 2007-08-28 10:36 UTC
rendered paste body
new Float:x, Float:y, Float:z, Float:ang;
new InVehicle = IsPlayerInAnyVehicle(playerid);
new IsAdmin = IsPlayerAdmin(playerid);
new VehicleID = GetPlayerVehicleID(playerid);

if(strcmp(cmdtext, "/nrg", true) == 0)
{
if(InVehicle == 1)
{
SendClientMessage(playerid, COLOR_RED, "***Get out of your vehicle first!");
}
else if(IsAdmin == 0)
{
GetPlayerPos(playerid, x, y, z);
GetPlayerFacingAngle(playerid, ang);
CreateVehicle(522, x+1, y+1, z+1, 0, 0, 0, 600);
SetVehicleZAngle(VehicleID, ang);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "***Its behind you...");
SendClientMessage(playerid, COLOR_RED, "***DONT ABUSE THIS, ONLY SPAWN NRG's THAT YOU NEED.");
}
else
{
GetPlayerPos(playerid, x, y, z);
GetPlayerFacingAngle(playerid, ang);
CreateVehicle(522, x+1, y+1, z+1, 0, 5, 126, 600);
SetVehicleZAngle(VehicleID, ang);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "***A nice pink NRG for the admin.^^");
}
return 1;
}