[Help]SendClientMessage
#1

i did the following script:

public OnPlayerPickUpPickup(playerid, pickupid)
{

if(pickupid==Cash)GivePlayerMoney(playerid,5);
SendClientMessage(playerid, COLOR_GREEN,"You Found 5 Bucks");
if(pickupid==Cash1)GivePlayerMoney(playerid,7);
SendClientMessage(playerid, COLOR_GREEN,"You Found 7 Bucks");
if(pickupid==Cash2)GivePlayerMoney(playerid,;
SendClientMessage(playerid, COLOR_GREEN,"You Found 8 Bucks");
if(pickupid==Cash3)GivePlayerMoney(playerid,9);
SendClientMessage(playerid, COLOR_GREEN,"You Found 9 Bucks");
if(pickupid==Cash4)GivePlayerMoney(playerid,5);
SendClientMessage(playerid, COLOR_GREEN,"You Found 5 Bucks");
if(pickupid==BriefCase)GivePlayerMoney(playerid,50 0);
SendClientMessage(playerid, COLOR_GREEN,"You Found A Briefcase which has 500$ Inside");
return 1;
}

and i have a problem,once i take one of the pickups,i get all these message at once,can anyone help me?i want to get these messages appear correctly like once i take 5 bucks i get a message:"You Found 5 Bucks" and not all these at once.
Reply


Messages In This Thread
[Help]SendClientMessage - by Danikov - 17.10.2009, 12:19
Re: [Help]SendClientMessage - by Eazy_Efolife - 17.10.2009, 12:22
Re: [Help]SendClientMessage - by Danikov - 17.10.2009, 12:23
Re: [Help]SendClientMessage - by saiberfun - 17.10.2009, 12:26
Re: [Help]SendClientMessage - by per~fectionist - 17.10.2009, 12:27
Re: [Help]SendClientMessage - by Danikov - 17.10.2009, 12:36
Re: [Help]SendClientMessage - by Danikov - 17.10.2009, 12:40
Re: [Help]SendClientMessage - by saiberfun - 17.10.2009, 12:41
Re: [Help]SendClientMessage - by Danikov - 17.10.2009, 12:42
Re: [Help]SendClientMessage - by Danikov - 17.10.2009, 12:46

Forum Jump:


Users browsing this thread: 1 Guest(s)