Iulian2 Posted February 4, 2019 Posted February 4, 2019 Nu am gasit nici-o comanda sa dau PP la tot sv , ma puteti ajuta?
0 SherKan Posted February 4, 2019 Posted February 4, 2019 CMD:givepp(playerid, params[]) { new id, val; if(sscanf(params, "ud", id)) return SendClientMessage(playerid, -1, "Syntax: /id [playerid/name] [points]"); PlayerInfo[id][pPremiumPoint] += val; .... ( mesaj ) ... return 1; } ceva de genu ar trebui sa faci Citat If I helped you for a while, do not forget to reward me with a good reputation. Discord: [ SherKan#8573 ] Support me: [ http://bit.do/suppor_my ] Gamemode for sale: [ http://bit.do/gamemode ] Support Scripting(beta project): [ http://bit.do/support_scripting ]
0 BaFFyJunior Posted February 4, 2019 Posted February 4, 2019 CMD:giveallgold( playerid, params[ ] ) { if(PlayerInfo[playerid][pAdmin < 5) return SCM(playerid, COLOR_ERROR, "Nu ai acces la aceasta comanda"); new lsGold; if( sscanf( params, "i", lsGold ) ) return SendUsage( playerid, "/giveallgold <Amount>" ); new gQuery[256]; foreach(new i: Player) { PlayerPlaySound( i, 1057, 0.0, 0.0, 0.0 ); PlayerInfo[ i ][ PremiumPoints] += lsGold; format(gQuery, sizeof(gQuery), "* %s (%d) a dat tuturor jucatorilor %d puncte premium.", GetName( playerid ), playerid, lsGold ); PlayerFile_Save( i ) ; // aici poti folosi functia ta de salvare a datelor jucatorului sau: format(gQuery,sizeof gQuery,"UPDATE `users` SET `PremiumPoints` = %d WHERE `Name` = '%s'", lsGold, GetName( playerid ) ); mysql_pquery( SQL, gQuery, "", "" ); } return ( 1 ); }
Question
Iulian2
Nu am gasit nici-o comanda sa dau PP la tot sv , ma puteti ajuta?
2 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now