22.11.2011, 17:40
How do I add object in vehicle like this:
Where can I get coordinates?
Where can I get coordinates?
if(!strcmp(cmdtext,"/undercover",true)) { new v = GetPlayerVehicleID(playerid); if(!pLightStatus[playerid]) { pLightObject[playerid] = CreateObject(18646, 0.0003, 0.0300, -17.0000, 0, 0, 0); AttachObjectToVehicle(pLightObject[playerid], v, -0.40, -0.15, 0.70, -2.00, 0.00, 4.00); pLightStatus[playerid] = true; SendClientMessage(playerid, 0xFFFFFF, "You Are Turend On Police Undercover Light ."); return 1; } else { DestroyObject(pLightObject[playerid]); pLightStatus[playerid] = false; return 1; } }
If You Need Police Undercover Light So Here it is
Its a Police Undercover Light Here Is Command Код:
if(!strcmp(cmdtext,"/undercover",true)) { new v = GetPlayerVehicleID(playerid); if(!pLightStatus[playerid]) { pLightObject[playerid] = CreateObject(18646, 0.0003, 0.0300, -17.0000, 0, 0, 0); AttachObjectToVehicle(pLightObject[playerid], v, -0.40, -0.15, 0.70, -2.00, 0.00, 4.00); pLightStatus[playerid] = true; SendClientMessage(playerid, 0xFFFFFF, "You Are Turend On Police Undercover Light ."); return 1; } else { DestroyObject(pLightObject[playerid]); pLightStatus[playerid] = false; return 1; } } |
if(!strcmp(cmdtext,"/undercover",true)) { if( !IsACop( playerid ) ) return SendClientMessage( playerid, COLOR_GREY, "you are not cop" ); if( !IsPlayerInAnyVehicle( playerid ) ) return SendClientMessage( playerid, COLOR_GREY, "You are not car!" ); if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SendClientMessage( playerid, COLOR_GREY, "You not put light!" ); new pLightStatus; new v = GetPlayerVehicleID(playerid); if(!pLightStatus[playerid]) { pLightObject[playerid] = CreateObject(18646, 0.0003, 0.0300, -17.0000, 0, 0, 0); AttachObjectToVehicle(pLightObject[playerid], 402, -0.40, -0.15, 0.70, -2.00, 0.00, 4.00); pLightStatus[playerid] = true; SendClientMessage(playerid, 0xFFFFFF, "You Are Turend On Police Undercover Light ."); return 1; } else { DestroyObject(pLightObject[playerid]); pLightStatus[playerid] = false; return 1; } }