+1 score by kill
#1

How I give +1 score and $ 300 of money to a user for kill


Variables money and score

PHP Code:
//money
if(GetPlayerMoney(playerid) != PlayerInfo[playerid][cDinero])
GivePlayerMoney(playerid,PlayerInfo[playerid][cDinero]);}
//score
if(GetPlayerScore(playerid) != PlayerInfo[playerid][cKills]){
SetPlayerScore(playerid,PlayerInfo[playerid][cKills]);} 
Reply
#2

PHP Code:
static moneyscore;
money 300;
score 1;
//money
if(GetPlayerMoney(playerid) != PlayerInfo[playerid][cDinero]){
GivePlayerMoney(playeridmoney);
PlayerInfo[playerid][cDinero] += money;}
//score
if(GetPlayerScore(playerid) != PlayerInfo[playerid][cKills]){
PlayerInfo[playerid][cKills] += 1;
SetPlayerScore(playerid,PlayerInfo[playerid][cKills]);} 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)