Posts: 672
Threads: 89
Joined: Jan 2010
Hey guys!
Ive made a Timer which teleports every player on the server at a DM area!
It supose to give the winner some money and some points
How do i 'find' who the winner is??
Thanks in advance
Posts: 672
Threads: 89
Joined: Jan 2010
This might sound stupid but IDC
Could u explain better? please
Posts: 672
Threads: 89
Joined: Jan 2010
Good!
Thank you
Posts: 672
Threads: 89
Joined: Jan 2010
Ok so i didnt have time to test it and i've tested it now!
The problem is that it only teleports me not the other players...why is that?:S
pawn Код:
public DM(playerid)
{
dmplayers[playerid] = true;
new test;
{//this checks all players on server where i counts from 0 - MAX_PLAYERS and sees if therein the DM
if(dmplayers[playerid] == true) test++;//adds 1 to test if they are
}
if(test == 1){//if there is only 1 player in there
SendClientMessage(playerid,red,"Lol");
//found the winner end dm and announce and award etc SendClientMessage or whatever
}
new rand;
rand = random(2);
rand++ ;
switch(rand)
{
case 1: SetPlayerPos(playerid, 246.9834,1799.3242,7.4141);
case 2: SetPlayerPos(playerid, 254.3532,1816.3137,4.7109);
case 3: SetPlayerPos(playerid, 248.5833,1854.4525,8.7737);
}
GivePlayerWeapon(playerid,31,2000);
GivePlayerWeapon(playerid,24,2000);
GivePlayerWeapon(playerid,27,2000);
SetPlayerHealth(playerid,100);
SetPlayerArmour(playerid,100);
return 1;
}
OFF:I double Posted cuz else no one would have seen this