Little bit of help :/
#1

Hi i found one mode which only has 2-3 things for Cops and Robbers and im making it so i have question there is vip system and server has 4 vips but how i can give them money you know when i for example do this /setvip 0 1[for example] to get idk 1m-2m you know what i mean when he buy vip and when i give him he get automatically money but amount which i made.
-Anyone can help?
Reply
#2

pawn Код:
GivePlayerMoney(playerid,amount);
add this to your /vip cmd.
Reply
#3

That's not working i tried but when i log in 1st time i get 500$ and next time again 500$ that's it 1000 i would when i give him V.I.P,to he get 500$ and that's it no more....
Reply
#4

BUMP
Reply
#5

Something like this

PHP код:
CMD:servip(playeridparams[])
{
    new 
targetidlevelmoneytargetname[64];
    if(
sscanf(params"udd"targetidlevelmoney)) return SendClientMessage(playerid, -1"Usage: /setvip [playerid] [level] [money]");
    if(
level || level 3) return SendClientMessage(playerid, -1"Error: Invalid level [1-3]");
    
PlayerInfo[targetid][Vip] = level;
    
GivePlayerMoney(targetidmoney);
    return 
1;

Reply
#6

I mean when i give him vip he get amount which i put into script,anyone can help?
Reply
#7

I hope you mean like this

PHP код:
//At top of script
#define VIP_MONEY 1000000 //You can changed it
CMD:servip(playeridparams[])
{
    new 
targetidleveltargetname[64];
    if(
sscanf(params"ud"targetidlevelmoney)) return SendClientMessage(playerid, -1"Usage: /setvip [playerid] [level]");
    if(
level || level 3) return SendClientMessage(playerid, -1"Error: Invalid level [1-3]");
    
PlayerInfo[targetid][Vip] = level;
    
GivePlayerMoney(targetidVIP_MONEY);
    return 
1;

Reply
#8

Ah,nothing better i took this script this isnt mine...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)