22.06.2016, 19:38
Hi comunity
because the pickup will not believe me , if I have the function and that , you will see a minigame 'm doing and I have an error with the pickup just mentioned this is the function so that if you have the pickup is believed again
this is the function that is believed to die if you have the pickup
this is the function for when you play
because the pickup will not believe me , if I have the function and that , you will see a minigame 'm doing and I have an error with the pickup just mentioned this is the function so that if you have the pickup is believed again
this is the function that is believed to die if you have the pickup
PHP код:
if(TeamRojoBandera[playerid]==1 && TieneBanderaAzul[playerid]==1)//Bandera Azul
{
TocarBanderaAzul=0;
TieneBanderaAzul[playerid]=0;
RemovePlayerAttachedObject(playerid,0);
DisablePlayerCheckpoint(playerid);
gPlayerCheckpoint[playerid] = CHECKPOINT_NONE;
BanderaAzulPickup = CreateDynamicPickup(19307, 1, -1434.6581,1486.1411,1.8672, 5);
foreach(Player, i)
{
if(TeamRojoBandera[i]==1)
{
format(string2, sizeof(string2),"* %s (ID:%d) asesino a %s (ID:%d) y recupero la bandera de tu equipo",PlayerName2(killerid),playerid,PlayerName2(playerid),playerid);
SendClientMessage(i,amarillo,string2);
new string[200];
format(string, sizeof(string), "~n~~n~~n~~n~~n~~r~%s ~n~Recupero la bandera de tu equipo",PlayerName2(killerid));
GameTextForPlayer(i, string, 3000, 3);
}
}
}
PHP код:
if(pickupid == BanderaAzulPickup )
{
if(EnBandera[playerid]==1 && TeamRojoBandera[playerid]==1)
{
//gServer[S_MONEYBAG_PLAYER] = playerid;
TocarBanderaAzul=1;
TieneBanderaAzul[playerid]=1;
//RemovePlayerAttachedObject(playerid, 1);
SetPlayerAttachedObject( playerid, 0, 19307, 6, -0.100000, 0.000000, 0.100000, 0.000000, 80.000000, 0.000000, 1.000000, 1.000000, 1.500000 );
DestroyPickup(BanderaAzulPickup);
SetPlayerCheckpoint(playerid,-1462.5980,1491.7832,8.2578,2.0);
gPlayerCheckpoint[playerid] = CHECKPOINT_RED;
SetPlayerColor(playerid,amarillo);
foreach(Player, i)
{
if(TeamRojoBandera[i]==1)
{
new string[200];
format(string, sizeof(string), "~n~~n~~n~~n~~n~~b~%s ~n~Capturo la bandera enemiga ayudalo", PlayerName2(playerid));
GameTextForPlayer(i, string, 3000, 3);
}
}
}
else
{
DestroyPickup(BanderaAzulPickup);
BanderaAzulPickup = CreatePickup(19307, 1, -1462.5980,1491.7832,8.2578, 5);
}
}