Posts: 390
Threads: 88
Joined: Jun 2011
Reputation:
0
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
Posts: 76
Threads: 8
Joined: Jul 2011
Reputation:
0
1. Please
do not
post like
this
2. Show more code
3. use the [pawn] feature
4.Explain it better
Posts: 390
Threads: 88
Joined: Jun 2011
Reputation:
0
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!
Posts: 2,268
Threads: 89
Joined: Apr 2009
Reputation:
0
Search for GivePlayerMoney under OnPlayerSpawn or OnPlayerDeath callbacks.
Posts: 390
Threads: 88
Joined: Jun 2011
Reputation:
0
cant find it under spawn nither on death
Posts: 2,268
Threads: 89
Joined: Apr 2009
Reputation:
0
Search in your filterscripts and includes!
Posts: 390
Threads: 88
Joined: Jun 2011
Reputation:
0
OH YES ITS UNDER ONPLAYERCONNECT
Posts: 390
Threads: 88
Joined: Jun 2011
Reputation:
0
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);