07.03.2013, 01:40
Se vocк tiver a variavel de matou vocк coloca assim:
Caso nгo tenha um sistema de matou, use assim:
.
pawn Код:
//OnPlayerSpawn:
ResetPlayerMoney(playerid);
GivePlayerMoney(playerid,VARIAVELMATOU);
// Em OnPlayerDeath:
ResetPlayerMoney(killerid);
GivePlayerMoney(killerid,VARIAVELMATOU+1);
pawn Код:
//Topo:
new Matou[MAX_PLAYERS];
//OnPlayerConnect:
Matou[playerid] = 0;
//OnPlayerSpawn:
ResetPlayerMoney(playerid);
GivePlayerMoney(playerid,Matou[playerid]);
//OnPlayerDeath:
Matou[killerid] ++;
ResetPlayerMoney(killerid);
GivePlayerMoney(killerid,Matou[killerid]);