Only one siren allowed on server
#1

When I do /siren it shows a siren and when someone else does it takes my siren off it wont allow 2 sirens on the server
Код HTML:
new myobject[MAX_PLAYERS];
CMD:siren(playerid, params[])
{
    if(!IsValidObject(myobject[playerid]))
    {
        if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 560 || GetVehicleModel(GetPlayerVehicleID(playerid)) == 415 || GetVehicleModel(GetPlayerVehicleID(playerid)) == 541)
        {
            myobject[playerid] = CreateObject(18646,0,0,-1000,0,0,0,100);
            AttachObjectToVehicle(myobject[playerid], GetPlayerVehicleID(playerid), 0.449999,0.000000,0.599999,0.000000,0.000000,0.000000);
         }
    }
    else
    {
        DestroyObject(myobject[playerid]);
    }
    return 1;
}
Reply


Messages In This Thread
Only one siren allowed on server - by lramos15 - 02.08.2013, 17:40
Re: Only one siren allowed on server - by Dokins - 02.08.2013, 17:43
Re: Only one siren allowed on server - by SMCentral - 02.08.2013, 17:48
Re: Only one siren allowed on server - by lramos15 - 02.08.2013, 18:33
Re: Only one siren allowed on server - by Facerafter - 02.08.2013, 20:36
Re: Only one siren allowed on server - by lramos15 - 16.08.2013, 18:17
Re : Only one siren allowed on server - by yusei - 16.08.2013, 18:37

Forum Jump:


Users browsing this thread: 1 Guest(s)