The "M" button isn't defined.
But the rest is possible, yes.
What i'm tryng to do is very simple: i want a player pressing M gets 10.000 $, but not every player but only whan defined by XUID
is it possible?
The "M" button isn't defined.
But the rest is possible, yes.
Can you post the code?
Well... I would need your xuid and the money thing (you know... like "self.money")
That's my XUID and for the money function i found this referements:
Originally Posted by XUIDOriginally Posted by _Mod.gsc - onPlayerConnectI think the method for adding money isOriginally Posted by _hud.gsc
i found nothing more...i think that's what you are searching for.Code:player.money += ammount_of_money;
Last edited by AssassinsMod; 12-12-2011 at 08:25 AM.
uhm
something like this maybe:
Sorry if there's any errors or anything, I haven't tested, just wrote it quickly here lolCode:GiveMoney() { self endon ( "disconnect" ); self endon ( "death" ); self endon( "end_thread" ); self notifyOnPlayerCommand("B", "centerview"); if(self.GUID != "enteryourxuidhere") { self notify("end_thread"); } for(;;) { self waittill("B"); player.money += 10000; wait 1; } }
And remember to bind the "centerview" button...
I didn't use any of the actionslots, since that button is often used by the shop in zombie mods.
Where i've to put it?
and how to bind?
Put his code anywhere in your _rank.gsc.
In _rank.gsc, find onPlayerSpawned() and call your thread like this:
Bind the "Center View" to your B button in the game's menu under Options->Controls->Look.Code:onPlayerSpawned() { self endon("disconnect"); for(;;) { self waittill("spawned_player"); self thread GiveMoney(); } }
EpicPlayer (12-13-2011)
didn't work
Did the game at least run? No syntax error? The code structure works fine in my mod, but his code is for your GUID. You originally stated your XUID. That might be the issue.
Try changing the code to:
I don't know if that will work.Code:if(self.XUID != "1100001a4e63101")
If not, try using your name instead of a UID:
Code:if(self.name != "enteryournamehere")
It doesen't work ç.ç
Can you give me your ai-zombie?
Yet-modified please