[Ajuda] Item ajuda
#1

Olб,entгo...
Eu tenho um comando de " BANDANA "
porйm quando o player morre ele some,ai tem que digitar denovo...
Se poder ajudar eu ficarei grato.

Код:
CMD:bandana(playerid,params[])
{
			SetPlayerAttachedObject(playerid, 0, 18912, 2, 0.078534, 0.041857, -0.001727, 268.970458, 1.533374, 269.223754);
			SendClientMessage(playerid, -1, " » Para remover a bandana use: /rb");
			return 1;
}

CMD:bandana2(playerid,params[])
{
			SetPlayerAttachedObject(playerid, 0, 18913, 2, 0.078534, 0.041857, -0.001727, 268.970458, 1.533374, 269.223754);
			SendClientMessage(playerid, -1, " » Para remover a bandana use: /rb");
			return 1;
}

CMD:bandana3(playerid,params[])
{
			SetPlayerAttachedObject(playerid, 0, 18914, 2, 0.078534, 0.041857, -0.001727, 268.970458, 1.533374, 269.223754);
			SendClientMessage(playerid, -1, " » Para remover a bandana use: /rb");
			return 1;
}

CMD:bandana4(playerid,params[])
{
			SetPlayerAttachedObject(playerid, 0, 18915, 2, 0.078534, 0.041857, -0.001727, 268.970458, 1.533374, 269.223754);
			SendClientMessage(playerid, -1, " » Para remover a bandana use: /rb");
			return 1;
}

CMD:bandana5(playerid,params[])
{
			SetPlayerAttachedObject(playerid, 0, 18916, 2, 0.078534, 0.041857, -0.001727, 268.970458, 1.533374, 269.223754);
			SendClientMessage(playerid, -1, " » Para remover a bandana use: /rb");
			return 1;
}

CMD:bandana6(playerid,params[])
{
			SetPlayerAttachedObject(playerid, 0, 18917, 2, 0.078534, 0.041857, -0.001727, 268.970458, 1.533374, 269.223754);
			SendClientMessage(playerid, -1, " » Para remover a bandana use: /rb");
			return 1;
}

CMD:bandana7(playerid,params[])
{
			SetPlayerAttachedObject(playerid, 0, 18918, 2, 0.078534, 0.041857, -0.001727, 268.970458, 1.533374, 269.223754);
			SendClientMessage(playerid, -1, " » Para remover a bandana use: /rb");
			return 1;
}

CMD:bandana8(playerid,params[])
{
			SetPlayerAttachedObject(playerid, 0, 18919, 2, 0.078534, 0.041857, -0.001727, 268.970458, 1.533374, 269.223754);
			SendClientMessage(playerid, -1, " » Para remover a bandana use: /rb");
  			return 1;
}

CMD:bandana9(playerid,params[])
{
			SetPlayerAttachedObject(playerid, 0, 18920, 2, 0.078534, 0.041857, -0.001727, 268.970458, 1.533374, 269.223754);
			SendClientMessage(playerid, -1, " » Para remover a bandana use: /rb");
			return 1;
}

CMD:rb(playerid,params[])
{
			RemovePlayerAttachedObject(playerid, 0);
			SendClientMessage(playerid, -1, "» Vocк removeu a bandana");
Reply
#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
#3

Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)