SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 03/12/2011, 07:03 PM   #1
Admigo
High-roller
 
Admigo's Avatar
 
Join Date: Oct 2010
Location: The Netherlands
Posts: 1,745
Reputation: 211
Default Need code for deleting gates area 51

Heey all,
Can someone give me the code of removebuildingforplayer for deleting the gates of area 51?
I really need this.

Thanks admigo
__________________
0.4a RC. We are waiting for you

Admigo is offline   Reply With Quote
Old 03/12/2011, 07:04 PM   #2
Zonoya
Gangsta
 
Zonoya's Avatar
 
Join Date: Jul 2011
Location: Am I in Rio de Janeiro or the Amazon, you tell me?
Posts: 637
Reputation: 17
Default Re: Need code for deleting gates area 51

you need to delete the whole fence and put the new 0,3d fence in
__________________
Code:
public OnRconLoginAttempt(ip[], password[], success)
{
    if(!success) //If the password was incorrect
    {
        printf("FAILED RCON LOGIN BY IP %s USING PASSWORD %s",ip, password);
        new pip[16];
        for(new i=0; i<MAX_PLAYERS; i++) //Loop through all players
        {
            GetPlayerIp(i, pip, sizeof(pip));
            if(!strcmp(ip, pip, true)) //If a player's IP is the IP that failed the login
            {
                SendClientMessage(i, 0xFFFFFFFF, "Wrong Password. Bye!"); //Send a message
                Ban(i); //They are now banned.
            }
        }
    }
    return 1;
}
Zonoya is offline   Reply With Quote
Old 03/12/2011, 07:08 PM   #3
Admigo
High-roller
 
Admigo's Avatar
 
Join Date: Oct 2010
Location: The Netherlands
Posts: 1,745
Reputation: 211
Default Re: Need code for deleting gates area 51

Ok thanks dude,will do that
Only one question: Can you attach 5 or 10 objects to a player because on wiki it says 5 but it was 10 in 0.3d right?
__________________
0.4a RC. We are waiting for you

Admigo is offline   Reply With Quote
Old 03/12/2011, 07:25 PM   #4
Zonoya
Gangsta
 
Zonoya's Avatar
 
Join Date: Jul 2011
Location: Am I in Rio de Janeiro or the Amazon, you tell me?
Posts: 637
Reputation: 17
Default Re: Need code for deleting gates area 51

not sure i think its still 5 and do u mind helping me

I have a script for a score based spawning i have everying in a Switch(GetPlayerScore(playerid)) but how would i detect if the player had like 300+ score
__________________
Code:
public OnRconLoginAttempt(ip[], password[], success)
{
    if(!success) //If the password was incorrect
    {
        printf("FAILED RCON LOGIN BY IP %s USING PASSWORD %s",ip, password);
        new pip[16];
        for(new i=0; i<MAX_PLAYERS; i++) //Loop through all players
        {
            GetPlayerIp(i, pip, sizeof(pip));
            if(!strcmp(ip, pip, true)) //If a player's IP is the IP that failed the login
            {
                SendClientMessage(i, 0xFFFFFFFF, "Wrong Password. Bye!"); //Send a message
                Ban(i); //They are now banned.
            }
        }
    }
    return 1;
}
Zonoya is offline   Reply With Quote
Old 03/12/2011, 08:26 PM   #5
Admigo
High-roller
 
Admigo's Avatar
 
Join Date: Oct 2010
Location: The Netherlands
Posts: 1,745
Reputation: 211
Default Re: Need code for deleting gates area 51

Quote:
Originally Posted by Zonoya View Post
not sure i think its still 5 and do u mind helping me

I have a script for a score based spawning i have everying in a Switch(GetPlayerScore(playerid)) but how would i detect if the player had like 300+ score
You can do:
Code:
if(GetPlayerScore(playerid)>500)
Its not a switch but i dont know anything about switches lol.
__________________
0.4a RC. We are waiting for you

Admigo is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[FilterScript] Rocket and new gates to Area 51... sergio_xd Filterscripts 40 31/08/2013 07:00 PM
Area 69 moving gates and self destruct cmd WSD Help Archive 3 15/06/2010 06:50 PM
deleting weapons when leave area. esttalk Help Archive 7 27/11/2009 11:52 PM
[Help]Area 51 Gates Problem Tigerbeast11 Help Archive 15 25/10/2009 09:06 AM
Area 51 Door/Gates KyleSmith Help Archive 10 26/08/2009 06:52 PM


All times are GMT. The time now is 12:11 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.