Question about a problem with a simple /setlevel command I made
#3

Quote:
Originally Posted by SilentSoul
Посмотреть сообщение
You can simply use something like that.
pawn Код:
CMD:setlevel(playerid,params[])
{
    SetPlayerScore(playerid,GetPlayerScore(playerid)+1); //getting the current player score and increase the value +1 , no need for all codes above.
    SendClientMessage(playerid, COLOR_RED, "Your level has been set!");
    return 1;
}
Sources :
https://sampwiki.blast.hk/wiki/SetPlayerScore
https://sampwiki.blast.hk/wiki/GetPlayerScore
Thanks that worked quite well for me. I didn't even know I could do something like that.
Reply


Messages In This Thread
Question about a problem with a simple /setlevel command I made - by K9IsGodly - 01.01.2014, 19:25
Re: Question about a problem with a simple /setlevel command I made - by SilentSoul - 01.01.2014, 19:29
Re: Question about a problem with a simple /setlevel command I made - by K9IsGodly - 01.01.2014, 19:39

Forum Jump:


Users browsing this thread: 1 Guest(s)