Help Me [h] - 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: Help Me [h] (
/showthread.php?tid=272916)
Help Me [h] -
RandomDude - 30.07.2011
help me
when a person dies respawns he gets 500k
and when he collocts more and died
then wtf
he still got 500k
onplayerspawn
giveplayermoney(playerid,500000");
how can i change that to if player get more set cash how much they died with -100k
Re: Help Me [h] -
Runedog48 - 30.07.2011
1. Please
do not
post like
this
2. Show more code
3. use the [pawn] feature
4.Explain it better
Re: Help Me [h] -
RandomDude - 30.07.2011
look yea
This Is The Problam
1st I Did On Spawn ThE pLAYER gETS 500000
2ND WHEN THE PLAYER GETS MORE CASH LIKE 2000$ EXTRA HE DIED RESPAWNS HE STILL HAVE 500000 AGAIN WTF!
Re: Help Me [h] -
[MWR]Blood - 30.07.2011
Search for GivePlayerMoney under OnPlayerSpawn or OnPlayerDeath callbacks.
Re: Help Me [h] -
RandomDude - 30.07.2011
cant find it under spawn nither on death
Re: Help Me [h] -
[MWR]Blood - 30.07.2011
Search in your filterscripts and includes!
Re: Help Me [h] -
RandomDude - 30.07.2011
OH YES ITS UNDER ONPLAYERCONNECT
Re: Help Me [h] -
[MWR]Blood - 30.07.2011
Quote:
Originally Posted by RandomDude
OH YES ITS UNDER ONPLAYERCONNECT
|
Are you sure it's the proper one?
If it's under onplayerconnect, why is it giving cash on the spawn?
Re: Help Me [h] -
RandomDude - 30.07.2011
argh 1min
im ccorectt public OnPlayerConnect(playerid)
{
new IP[20];
GetPlayerIp(playerid,IP,sizeof(IP));
new IPPart[4];
sscanf(IP,"p<.>dddd",IPPart[0],IPPart[1],IPPart[2],IPPart[3]);
if(IPPart[0]==78&& IPPart[1]==101)// Hacker Ip 78
{
SendClientMessage(playerid,0xff3333ff,"You Are Banned Qatar Hacker I Told You Just Make A New Account Apply For Admin Sorry George!");
Ban(playerid);
return 1;
}
TextDrawShowForPlayer(playerid, draw1);
TextDrawShowForPlayer(playerid, draw2);
GivePlayerMoney(playerid,500000);