Help Me [h]
#1

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
Reply
#2

1. Please
do not
post like
this
2. Show more code
3. use the [pawn] feature
4.Explain it better
Reply
#3

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!
Reply
#4

Search for GivePlayerMoney under OnPlayerSpawn or OnPlayerDeath callbacks.
Reply
#5

cant find it under spawn nither on death
Reply
#6

Search in your filterscripts and includes!
Reply
#7

OH YES ITS UNDER ONPLAYERCONNECT
Reply
#8

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?
Reply
#9

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);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)