Pawno Crash - Help!
#7

Quote:
Originally Posted by Augustinas
add new prostitute = playerid;
at the top if your script
No, i dont think it will be good.
Because, i use this code in other commands.
Here:

pawn Код:
dcmd_accept(playerid, params[])
{
if(!Player[playerid][OfferedSex] == true)
{
SendClientMessage(playerid,RED,"No One Has Offered You Sexual Service.");
return 1;
}
if(GetPlayerCash(playerid) < 1000)
{
SendClientMessage(playerid,RED,"You Don't Have $1000 To Accept The Offer.");
return 1;
}
new string[256];
new ID = IDFromName(params);
GivePlayerCash(playerid,-1000);
format(string,256,"~w~you had ~y~sex ~w~with~n~~p~%s~n~~w~for ~g~$1000",RPN(prostitue));
GameTextForPlayer(playerid,string,4000,3);
format(string,256,"You Had A Great Sex With %s (%i) For $1000.",RPN(prostitue),ID);
SendClientMessage(playerid,BLUE,string);
Player[playerid][OfferedSex] = false;
KillTimer(OfferCancel);
if(GetPlayerHealth(playerid) < 85)
{
new Float:Health;
GetPlayerHealth(playerid,Health);
SetPlayerHealth(playerid,Health+15);
}
new kuncsaft = playerid;
GivePlayerCash(prostitue,5000);
format(string,256,"%s (%i) Has Accepted Your Offer. You Had A Great Sex With %s. Received $5000 Prostitue Bonus.",RPN(kuncsaft), ID);
SendClientMessage(prostitue,BLUE,string);
format(string,256,"~p~%s ~w~accepted your offer~n~received ~g~$5000 ~y~prostitue bonus",RPN(kuncsaft));
GameTextForPlayer(prostitue,string,4000,3);
oscore = GetPlayerScore(prostitue);
SetPlayerScore(prostitue, oscore +1);
return 1;
}
Reply


Messages In This Thread
Pawno Crash - Help! - by bpeterson - 16.07.2009, 20:20
Re: Pawno Crash - Help! - by refshal - 16.07.2009, 20:52
Re: Pawno Crash - Help! - by Blacklite - 17.07.2009, 08:07
Re: Pawno Crash - Help! - by c0der. - 17.07.2009, 08:08
Re: Pawno Crash - Help! - by bpeterson - 17.07.2009, 08:41
Re: Pawno Crash - Help! - by Augustinas - 17.07.2009, 08:47
Re: Pawno Crash - Help! - by bpeterson - 17.07.2009, 08:52
Re: Pawno Crash - Help! - by Blacklite - 17.07.2009, 09:12
Re: Pawno Crash - Help! - by bpeterson - 17.07.2009, 09:16

Forum Jump:


Users browsing this thread: 1 Guest(s)