SA-MP Forums Archive
[FilterScript] Script Christmas hat beta version 1 - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Script Christmas hat beta version 1 (/showthread.php?tid=389666)



Script Christmas hat beta version 1 - F1re - 03.11.2012

Script Christmas hat beta version 1
Dynamic system made ​​a New Year's cap.
Pastebin to lay out later.
Version will be finalized later.
As the time.
Svozmozhnostyu elections will cap.
Expect guys: 3


PHP код:
#file                         "fir.amx" //It can be removed.
#include                       a_samp //Standard features SA-MP.
// Script Christmas hat beta version 1
new bool:FIR[MAX_PLAYERS]; //array
#define Function: public //Well as BE. Public changed. Or blue irritates me.
#define ACMD(%1,%2) \
        
OnPlayerCommandText(%1,%2)        //Well as BE. Public changed. Or blue irritates me.
Function: OnPlayerDisconnect(playeridreason//If you took off the internet. Atach the object.
{
    
FIR{playerid} = false;
    return 
RemovePlayerAttachedObject(playerid3);
}
Function: 
OnPlayerDeath(playeridkilleridreason//If you are killed. Objects are removed.
{
    
FIR{playerid} = false;
    return 
RemovePlayerAttachedObject(playerid3);
}
Function: 
OnPlayerSpawn(playerid//Although it is not necessary. Who needs can leave.
{
    
FIR{playerid} = false;
    return 
RemovePlayerAttachedObject(playerid3);
}    
Function: 
ACMD(playeridcmdtext[]) {
        if(
strcmp(cmdtext"/Christmas"true)){ //If we have a false, then we object attached. True if the action is not.
            
if(!FIR{playerid}){ 
                
SetPlayerAttachedObject(playerid31906520.1200000.040000, -0.00350001001001.41.41.4); 
                
FIR{playerid} = true;
            }        
            else{ 
//Attachments action and false the array.
                
RemovePlayerAttachedObject(playerid3); 
                
FIR{playerid} = false;
            }    
            return 
1
        }
        return 
0;     
}
#endscript //It can be removed. 
By Bob_Marley & F1re


Re: Script Christmas hat beta version 1 - Deron_Green - 03.11.2012

Isnt it a little early for christmas?