Why it sends the message 4 times not just 1 ?
#3

Try this maybe

PHP код:
else if(!strcmp(option"cocaine"true1)) 
            { 
                if(
sscanf(params"s[32]i"optionamount)) return SendClientMessage(playeridCOLOR_WHITE"[Usage]: /twithdraw cocaine [amount]"); 
                if(
PlayerInfo[playerid][pvTcocaine] < amount) return SendClientMessage(playeridCOLOR_GREY"You don't have that much cocaine in your trunk."); 
                
PlayerInfo[playerid][pvTcocaine] -= amount
                
PlayerInfo[playerid][pcocaine] += amount
                    
format(stringsizeof(string), "* %s opens their trunk and takes %d grams of cocaine from it."RPN(playerid), amount); 
                
SendNearbyMessage(playerid15stringCOLOR_PURPLECOLOR_PURPLECOLOR_PURPLECOLOR_PURPLECOLOR_PURPLE); 
            } 
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)