[Pedido] Comando de convidar player
#2

PHP код:
CMD:convidartodos(playeridparams[])
{
    new 
        
Float:x,
        
Float:y,
        
Float:z;
    
GetPlayerPos(playeridxyz);
    for (new 
0MAX_PLAYERS++) if (!GetPVarFloat(i"AdmX")) {
        
SendClientMessage(i, -1"Um Administrador estб convidado todos do servidor para ir atй ele.");
        
SetPVarFloat(i"AdmX"x);
        
SetPVarFloat(i"AdmY"y);
        
SetPVarFloat(i"AdmZ"z);
    }
    return 
1;
}
CMD:aceitar(playeridparams[])
{
    if (!
GetPVarFloat(playerid"AdmX"))
        return 
1;
    
SetPlayerPos(playeridGetPVarFloat(playerid"AdmX"), GetPVarFloat(playerid"AdmY"), GetPVarFloat(playerid"AdmZ"));
    
DeletePVar(playerid"AdmX"); 
    
DeletePVar(playerid"AdmY");
    
DeletePVar(playerid"AdmZ");    
    return 
1;    
}
CMD:negar(playeridparams[])
{
    if (!
GetPVarFloat(playerid"AdmX"))
        return 
1;
    
DeletePVar(playerid"AdmX"); 
    
DeletePVar(playerid"AdmY");
    
DeletePVar(playerid"AdmZ");
    return 
1;    
}
CMD:cancelarconvite(playeridparams[])
{
    for (new 
0MAX_PLAYERS++) if (GetPVarFloat(i"AdmX")) {
        
DeletePVar(i"AdmX"); 
        
DeletePVar(i"AdmY");
        
DeletePVar(i"AdmZ");
    }
    return 
1;    

Nгo sei se vai funcionar, fica como base.
Reply


Messages In This Thread
Comando de convidar player - by Fix3r - 10.02.2017, 21:58
Re: Comando de convidar player - by 1sbedx - 10.02.2017, 22:31
Re: Comando de convidar player - by Fix3r - 10.02.2017, 23:53
Re: Comando de convidar player - by TheBob - 11.02.2017, 01:19
Re: Comando de convidar player - by Fix3r - 11.02.2017, 01:56

Forum Jump:


Users browsing this thread: 1 Guest(s)