please help me to create an money earn onplayerdeath
#1

how i can make a script like this?? :

if i killed a player... i will get 40% from he's money

like if he's have 10.000$
i killed him.. then i will got 4.000$

please guys .. show me how
Reply
#2

This should work:

pawn Код:
GivePlayerMoney( killerid, GetPlayerMoney( playerid ) * 0.4 );
Reply
#3

well i think its made some warnings
like this

Код:
C:\Users\AS4732Z\Desktop\SAMP Server\LSGW~RP\gamemodes\LSTW2Uv2.pwn(1692) : warning 217: loose indentation
C:\Users\AS4732Z\Desktop\SAMP Server\LSGW~RP\gamemodes\LSTW2Uv2.pwn(1692) : warning 213: tag mismatch
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Warnings.
Reply
#4

anyone?? help me pls
Reply
#5

PLEASE ANY BODY HELP ME !!!!!!!!!!!!!!!!!!!!!
Reply
#6

Код:
public OnPlayerDeath(playerid, killerid, reason)
{
        GivePlayerMoney( killerid, GetPlayerMoney(playerid) * 4/10);
	 return 1;
}
Reply
#7

Floatround ..
Reply
#8

THX guys !!!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)