[FilterScript] Script Christmas hat beta version 1
#1

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
Reply
#2

Isnt it a little early for christmas?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)