CMD:nitro(playerid, params[])
{
new Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, vehicleid = GetPlayerVehicleID(playerid);
if(IsPlayerInNosVehicle(playerid))
{
for( new i; i<sizeof(CarData); i++ )
{
x = CarData[i][Nos_x];
y = CarData[i][Nos_y];
z = CarData[i][Nos_z];
rx = CarData[i][Nos_rx];
ry = CarData[i][Nos_ry];
rz = CarData[i][Nos_rz];
return 0;
}
switch(vehicleid)
{
case 411:
{
PlayerInfo[playerid][SpecialNos] = CreateObject( 1010, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 100.0 );
AttachObjectToVehicle( GetPlayerVehicleID(playerid), PlayerInfo[playerid][SpecialNos], x, y, z, rx, ry, rz );
}
}
}
else return SendClientMessage(playerid, COLOR_RED, "ERROR: there is no Special N20 bottle available for this vehicle");
return 1;
}
CMD:n20(playerid, params[])
{
new Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, vehicleid = GetPlayerVehicleID(playerid);
if(IsPlayerInNosVehicle(playerid))
{
for( new i; i<sizeof(CarData); i++ )
{
x = CarData[i][Nos_x];
y = CarData[i][Nos_y];
z = CarData[i][Nos_z];
rx = CarData[i][Nos_rx];
ry = CarData[i][Nos_ry];
rz = CarData[i][Nos_rz];
return 0;
}
switch(vehicleid)
{
case 411:
{
PlayerInfo[playerid][SpecialNos] = CreateObject( 1010, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 100.0 );
AttachObjectToVehicle( GetPlayerVehicleID(playerid), PlayerInfo[playerid][SpecialNos], x, y, z, rx, ry, rz );
}
}
}
else return SendClientMessage(playerid, COLOR_RED, "ERROR: there is no Special N20 bottle available for this vehicle");
return 1;
}
for( new i; i<sizeof(CarData); i++ )
{
x = CarData[i][Nos_x];
y = CarData[i][Nos_y];
z = CarData[i][Nos_z];
rx = CarData[i][Nos_rx];
ry = CarData[i][Nos_ry];
rz = CarData[i][Nos_rz];
return 0;
You gotta be joking man, there was no error saying that he needs to include it.
|
PHP код:
|
CMD:nitro(playerid, params[])
{
new Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, vehicleid = GetPlayerVehicleID(playerid);
if(IsPlayerInNosVehicle(playerid))
{
for( new i; i<sizeof(CarData); i++ )
{
x = CarData[i][Nos_x];
y = CarData[i][Nos_y];
z = CarData[i][Nos_z];
rx = CarData[i][Nos_rx];
ry = CarData[i][Nos_ry];
rz = CarData[i][Nos_rz];
}
switch(vehicleid)
{
case 411:
{
PlayerInfo[playerid][SpecialNos] = CreateObject( 1010, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 100.0 );
AttachObjectToVehicle( GetPlayerVehicleID(playerid), PlayerInfo[playerid][SpecialNos], x, y, z, rx, ry, rz );
}
}
}
else return SendClientMessage(playerid, COLOR_RED, "ERROR: there is no Special N20 bottle available for this vehicle");
return 1;
}