1 Question! - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: 1 Question! (
/showthread.php?tid=251977)
1 Question! -
Mr_Scripter - 29.04.2011
Hello Guys,
i need little help. ~How can i do this~
e.g i maded command
When Player type "Money" (Without /) it gives him 100$ and when he tries to type it again it says "You Already Founded The Bonus Word"
Re: 1 Question! -
Wesley221 - 29.04.2011
So you mean if someone types "Money" in-game, it need's to give him 100$ each time they type it?
Re: 1 Question! -
playbox12 - 29.04.2011
pawn Код:
new MoneyUsed[MAX_PLAYERS];
public OnPlayerText(playerid, text[])
{
if(strcmp(text, "Money", true, 5))
{
if(MoneyUsed[playerid] != 0)
{
SendClientMessage(playerid, -1, "You already found the bonus word");
}
else
{
MoneyUsed[playerid] = 1;
GivePlayerMoney(playerid, 100);
}
}
return 1;
}
Re: 1 Question! -
Darklom - 29.04.2011
Quote:
Originally Posted by Mr_Scripter
Hello Guys,
i need little help. ~How can i do this~
e.g i maded command
When Player type "Money" (Without /) it gives him 100$ and when he tries to type it again it says "You Already Founded The Bonus Word"
|
show us your command?
Re: 1 Question! -
Mr_Scripter - 29.04.2011
Ahm.. Done Thanks anywayz