08.12.2010, 09:43
Could be the rotation. For example, the default block object from single player (with lights), if you rotate the object, the lights won't light up.
Try without a roation.
Also, what if the player types:
/neonazul /neonazul /neonazul /neonazul /neonazul /neonazul /neonazul /neonazul /neonazul /neonazul /neonazul
You should think more about protecting the other players and server limits.
Try without a roation.
Also, what if the player types:
/neonazul /neonazul /neonazul /neonazul /neonazul /neonazul /neonazul /neonazul /neonazul /neonazul /neonazul
You should think more about protecting the other players and server limits.
Код:
new neon[MAX_PLAYERS], neon2[MAX_PLAYERS];
Код:
if(strcmp("/neonazul", cmdtext, true) == 0)
{
if(neon[playerid])DestroyObject(neon[playerid]), neon[playerid] = 0;
if(neon2[playerid])DestroyObject(neon2[playerid]), neon2[playerid] = 0;
neon[playerid] = CreateObject(18648,0,0,0,0,0,0,100.0);
neon2[playerid] = CreateObject(18648,0,0,0,0,0,0,100.0);
AttachObjectToVehicle(neon[playerid], GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
AttachObjectToVehicle(neon2[playerid], GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
SendClientMessage(playerid, COLOR_WHITE, "Neones Instalados!");
return 1;
}

