10.09.2011, 17:33
hola me pueden ayudar como ago un sistema de escore por muertes y matados ...
y como quito el sistema de score de lvdm...
y como quito el sistema de score de lvdm...
new
Kills[MAX_PLAYERS],
Deaths[MAX_PLAYERS]
;
public OnPlayerDeath(playerid, killerid, reason)
{
Deaths[playerid] ++;
if(killerid != INVALID_PLAYER_ID) Kills[killerid] ++;
return 1;
}
SetTimer("SetPlayerScore", 10000, false);
public SetPlayerScore()
{
for(new i; i < MAX_PLAYERS; i ++) SetPlayerScore(i, Kills[i]);
}
new
Kills[MAX_PLAYERS],
Deaths[MAX_PLAYERS]
;
public OnPlayerDeath(playerid, killerid, reason)
{
Deaths[playerid] ++;
if(killerid != INVALID_PLAYER_ID || IsPlayerConnected(killerid)) SetPlayerScore(killerid, ++Kills[killerid]);
return 1;
}
public OnPlayerConnect(playerid)
{
return Deaths[playerid] = 0, Kills[playerid] = 0, true;
}
new
Kills[MAX_PLAYERS],
Deaths[MAX_PLAYERS]
;
public OnPlayerConnect(playerid)
{
SetPlayerScore(playerid, 0);
Deaths[playerid] = 0, Kills[playerid] = 0;
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
Deaths[playerid] ++;
if(killerid != INVALID_PLAYER_ID) Kills[killerid] ++, SetPlayerScore(killerid, Kills[killerid]);
return 1;
}
new
Kills[MAX_PLAYERS],
Deaths[MAX_PLAYERS]
;
public OnPlayerDeath(playerid, killerid, reason)
{
Deaths[playerid] ++;
if(killerid != INVALID_PLAYER_ID || IsPlayerConnected(killerid)) SetPlayerScore(killerid, ++Kills[killerid]);
return 1;
}
public OnPlayerConnect(playerid)
{
return Deaths[playerid] = 0, Kills[playerid] = 0, true;
}
public OnPlayerUpdate(playerid) return SetPlayerScore(playerid, Kills[playerid]), true;
Poner el code in filter script:
pawn Код:
|
Para que actualizar el score OnPlayerUpdate si ya lo estбs haciendo cada vez que sumas una muerte?