19.09.2013, 03:20
Hello there
I would like to make it to where if the pickup "rdcenter" is active and created, to Display the Clientmsg
And if the pickup is destroyed I want it to Do the functions As followed.
Here is the sample from the Cmd im having problems with
Kinda In a hurry, any help is appreciated.
I would like to make it to where if the pickup "rdcenter" is active and created, to Display the Clientmsg
And if the pickup is destroyed I want it to Do the functions As followed.
Here is the sample from the Cmd im having problems with
Код:
CMD:resetm(playerid, params[])
{
if(RCON || RDMEMBER)
{
if//(the pickup is created)
{
SendClientMessage(playerid, green, "[RD-INFO]: Missle Control System Dosent Need to be Reset");
}
if//(the pickup is destroyed)
{
SendClientMessage(playerid, green, "[RD-INFO]: Missle Control System Has Been Reset");
MoveDynamicObject(rocket1, -858.47668, -1956.97327, 14.92840, 45.0, 3296329728, 3296329728, 3296329728);
MoveDynamicObject(rocket2, -859.48608, -1956.94385, 14.92840, 45.0, 3296329728, 3296329728, 3296329728);
MoveDynamicObject(rocket3, -860.43353, -1956.92773, 14.92840, 45.0, 3296329728, 3296329728, 3296329728);
MoveDynamicObject(rocketdoor, -859.36591, -1956.96252, 17.88272, 25.0, 3296329728, 3296329728, 3296329728);
DestroyObject(sf);
DestroyObject(lv);
DestroyObject(mntc);
DestroyObject(ls);
DestroyObject(area69);
DestroyObject(rdb);
DestroyObject(nuke);
DestroyObject(rdlight1);
DestroyObject(rdlight2);
DestroyObject(rdlight3);
DestroyObject(rdlight4);
GangZoneStopFlashForAll(lvzone);
GangZoneStopFlashForAll(mtnzone);
GangZoneStopFlashForAll(sfzone);
GangZoneStopFlashForAll(zone69);
GangZoneStopFlashForAll(rdzone);
GangZoneStopFlashForAll(lszone);
GangZoneStopFlashForAll(nukezone);
GangZoneHideForAll(lvzone);
GangZoneHideForAll(mtnzone);
GangZoneHideForAll(sfzone);
GangZoneHideForAll(zone69);
GangZoneHideForAll(lszone);
GangZoneHideForAll(rdzone);
GangZoneHideForAll(nukezone);
light1 = CreateObject(18652, -807.51630, -1941.34705, 27.33774, 0.00000, 0.00000, -63.36000);
light2 = CreateObject(18652, -806.53241, -1938.60205, 27.33420, 0.00000, 0.00000, 26.46000);
light3 = CreateObject(18652, -809.39362, -1937.83618, 27.33596, 0.00000, 0.00000, -63.36000);
light4 = CreateObject(18652, -810.34229, -1940.59924, 27.32861, 0.00000, 0.00000, 26.88000);
rdcenter = CreatePickup(2976, 1, -811.1993, -1934.3029, 25.3736, -1);
}
}
else
{
SendClientMessage(playerid, 0xFF0000FF, "[RD-INFO]: You need to be an RD member to use this cmd");
}
return 1;
}

