14.07.2010, 19:59
Hello there, well, i'm currently working on a zombie gamemode, but i'm not sure of what I should do for this:
When the player spawns, he won't be able to move, as he have to choose a team by himself.
The problem is that, when exemple he type /zombie, I need that like, he's "infos" been set as a Zombie.
Due that later on, you won't be able to do "x" command if your not a zombie.
Here is the code.
I know that i need to do something like "new IsZombie", but i'm really confused.
Thanks in advance!
When the player spawns, he won't be able to move, as he have to choose a team by himself.
The problem is that, when exemple he type /zombie, I need that like, he's "infos" been set as a Zombie.
Due that later on, you won't be able to do "x" command if your not a zombie.
Here is the code.
Код:
if (strcmp("/zombie", cmdtext, true, 10) == 0) { ResetPlayerWeapons(playerid); SetPlayerInterior(playerid, 0); SetPlayerPos(playerid,-2768.17,-715.08,65.84); SendClientMessage(playerid,0x0000BBAA, "Need tips? Type /zombiehelp!"); GivePlayerWeapon(playerid, 33, 150); SetPlayerSkin( playerid, 287 ); return 1; }
I know that i need to do something like "new IsZombie", but i'm really confused.
Thanks in advance!