[Ajuda] Item ajuda
#2

PHP код:
new Bandana[MAX_PLAYERS];
CMD:bandana(playerid)
{
            
SetPlayerAttachedObject(playerid01891220.0785340.041857, -0.001727268.9704581.533374269.223754);
            
SendClientMessage(playerid, -1" » Para remover a bandana use: /rb");
            
Bandana[playerid] = 1;
            return 
1;
}
CMD:bandana2(playerid)
{
            
SetPlayerAttachedObject(playerid01891320.0785340.041857, -0.001727268.9704581.533374269.223754);
            
SendClientMessage(playerid, -1" » Para remover a bandana use: /rb");
            
Bandana[playerid] = 2;
            return 
1;
}
CMD:bandana3(playerid)
{
            
SetPlayerAttachedObject(playerid01891420.0785340.041857, -0.001727268.9704581.533374269.223754);
            
SendClientMessage(playerid, -1" » Para remover a bandana use: /rb");
            
Bandana[playerid] = 3;
            return 
1;
}
CMD:bandana4(playerid)
{
            
SetPlayerAttachedObject(playerid01891520.0785340.041857, -0.001727268.9704581.533374269.223754);
            
SendClientMessage(playerid, -1" » Para remover a bandana use: /rb");
            
Bandana[playerid] = 4;
            return 
1;
}
CMD:bandana5(playerid)
{
            
SetPlayerAttachedObject(playerid01891620.0785340.041857, -0.001727268.9704581.533374269.223754);
            
SendClientMessage(playerid, -1" » Para remover a bandana use: /rb");
            
Bandana[playerid] = 5;
            return 
1;
}
CMD:bandana6(playerid)
{
            
SetPlayerAttachedObject(playerid01891720.0785340.041857, -0.001727268.9704581.533374269.223754);
            
SendClientMessage(playerid, -1" » Para remover a bandana use: /rb");
            
Bandana[playerid] = 6;
            return 
1;
}
CMD:bandana7(playerid)
{
            
SetPlayerAttachedObject(playerid01891820.0785340.041857, -0.001727268.9704581.533374269.223754);
            
SendClientMessage(playerid, -1" » Para remover a bandana use: /rb");
            
Bandana[playerid] = 7;
            return 
1;
}
CMD:bandana8(playerid)
{
            
SetPlayerAttachedObject(playerid01891920.0785340.041857, -0.001727268.9704581.533374269.223754);
            
SendClientMessage(playerid, -1" » Para remover a bandana use: /rb");
            
Bandana[playerid] = 8;
              return 
1;
}
CMD:bandana9(playerid)
{
            
SetPlayerAttachedObject(playerid01892020.0785340.041857, -0.001727268.9704581.533374269.223754);
            
SendClientMessage(playerid, -1" » Para remover a bandana use: /rb");
            
Bandana[playerid] = 9;
            return 
1;
}
CMD:rb(playerid)
{
            
RemovePlayerAttachedObject(playerid0);
            
SendClientMessage(playerid, -1"» Vocк removeu a bandana");
            
Bandana[playerid] = 0;
            return 
1;

OnPlayerSpawn
PHP код:
// OnPlayerSpawn
switch(Bandana[playerid])
{
    case 
0: return 1;
    case 
1cmd_bandana(playerid);
    case 
2cmd_bandada2(playerid);
    case 
3cmd_bandada3(playerid);
    case 
4cmd_bandada4(playerid); 
    case 
5cmd_bandada5(playerid);
    case 
6cmd_bandada6(playerid);
    case 
7cmd_bandada7(playerid);
    case 
8cmd_bandada8(playerid);
    case 
9cmd_bandada9(playerid);
    return 
1;

Reply


Messages In This Thread
Item ajuda - by Helielto - 18.06.2017, 21:11
Re: Item ajuda - by IlanZ - 18.06.2017, 21:22
Re: Item ajuda - by Helielto - 18.06.2017, 21:52

Forum Jump:


Users browsing this thread: 2 Guest(s)