How to take away an item from stats
#3

pawn Код:
CMD:buyhunter(playerid,params[]){
    if(PlayerInfo[playerid][pKillPoints] < 75) return SendClientMessage(playerid,COLOR_WHITE,"You do not have enough 'KPS'");
    new Float:x,Float:y,Float:z;
    GetPlayerPos(playerid,x,y,z);
    CreateVehicle(425,x+3.0,y,z,0,-1,-1,5);
    new string[128],i;
    new name[MAX_PLAYER_NAME];
    GetPlayerName(i,name,sizeof(name));
    format(string,sizeof(string),"%s has just purchased a Hunter, WATCH OUT!",name);
    SendClientMessage(playerid,COLOR_RED,string);
    PlayerInfo[playerid][pKillPoints] = (PlayerInfo[playerid][pKillPoints] - 75);
    return 1;
}
Reply


Messages In This Thread
How to take away an item from stats - by Azzeto - 27.09.2011, 19:19
Re: How to take away an item from stats - by grand.Theft.Otto - 27.09.2011, 19:40
Re: How to take away an item from stats - by sleepysnowflake - 27.09.2011, 19:43
Re: How to take away an item from stats - by grand.Theft.Otto - 27.09.2011, 19:44
Re: How to take away an item from stats - by Azzeto - 27.09.2011, 19:45
Re: How to take away an item from stats - by sleepysnowflake - 27.09.2011, 19:48

Forum Jump:


Users browsing this thread: 3 Guest(s)