07.02.2009, 15:10
You can use as much else if's as you want. Here is the example of how to fix your code:
pawn Код:
public CustomPickups()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if (PlayerToPoint(3, i,2026.4064,1017.9352,10.8203)) // Bank
{
GameTextForPlayer(i, "~y~Vitaj v ~y~Banke~n~~w~Napis /enterbank aby si vosiel dnu", 5000, 5);
printf("Vitajvbanke");
}
}
else if (PlayerToPoint(2, i,1315.3907,1436.6250,55.0039)) //Raketa
{
GameTextForPlayer(i, "~y~Houhouhou skuska", 5000, 5);
printf("Vitajvbanke");
}
else if (PlayerToPoint(2, i,1456.3907,1789.6250,255.0039)) //asd
{
GameTextForPlayer(i, "~y~asd", 5000, 5);
printf("asd");
}
else
{
return true;
}
}

