is this a good way to see if a player has survived for %i times..
later im gonna save all his survives using mysql. but i don't know how to go with the code.
Thanks!
PHP Code:
public eRound_end()
{
//Bunch of variables
new iPlayers[32], iNum, iPid;
//Get all players
get_players( iPlayers, iNum, "a" );
//Browse through all players
for( new i; i < iNum; i++ )
{
iPid = iPlayers[i];
new CsTeams:team = cs_get_user_team(iPid);
//If player is Terrorist and Alive
if( team == CS_TEAM_T && is_user_alive(iPid) )
{
//Add +1 survive to the player
Survives[iPid] += 1
//Print to the player that he has survived +1 more time
print_color(iPid, "You have survived %i times", Survives[iPid]);
}
}
}
i know this one has some errors.
__________________