PDA

View Full Version : I need someone to make me a custom class system


CopKing123
15/08/2014, 10:32 PM
Hey guys sup!!? I wanted to ask you if you guys could make me a custom class system i need it for an zombie server like x-Portal has it ! Ofcourse i'll give admin status for it! and if it's possible i would really appreciate that.
And by the way im not able to script that kind of things so please don't come up with bad posts.
If you can just post it if not thanks anyway..

Stinged
15/08/2014, 10:45 PM
new chosenclass[MAX_PLAYERS];

public OnPlayerDisconnect(playerid, reason)
{
chosenclass[playerid] = -1; // Setting the variable 'chosenclass' to -1
return 1;
}

public OnPlayerRequestClass(playerid,classid)
{
chosenclass[playerid] = classid; // Save classid into chosenclass so we could use it under OnPlayerRequestSpawn
return 1;
}

public OnPlayerRequestSpawn(playerid)
{
if (chosenclass[playerid] == YOUR CLASS ID)
{
if (!IsPlayerAdmin(playerid))
{
SendClientMessage(playerid, -1, "This skin is only for admins. Choose another one.");
return 0;
}
}
return 1;
}

NewbieTester
16/08/2014, 02:20 AM
#define CIVILIAN 1501
#define POLICEMAN 1502
#define MEDIC 1503
#define SCOUT 1504
#define HEAVYMEDIC 1505
#define FARMER 1506
#define ENGINEER 1507
#define SWAT 1508
#define HEAVYSHOTGUN 1509
#define ADVANCEDMEDIC 1510
#define ADVANCEDENGINEER 1511
#define FEDERALAGENT 1512
#define KICKBACK 1513
#define ADVANCEDSCOUT 1514
#define COWBOY 1515
#define ASSASSIN 1516
#define TRAPMASTER 1517
#define VIPENGINEER 1518
#define VIPMEDIC 1519
#define VIPSCOUT 1520
#define E_ENGINEER 1521
#define SOLDIER 1522
#define DOCTOR 1523
#define FBI 1524
#define SCIENTIST 1525
#define EXPERIENCEDSCOUT 1526
#define PIMP 1527
#define WEAPONSDEALER 1528
#define SMOKEUP 1529
#define SHOTGUNSPECIAL 1530
#define BOXER 1231
#define BOMBER 1232
#define MASTER 1233
#define GHOST 1234
#define BUDDY 1235
#define AKICK 1236
#define TECG 1237
#define BULL 1238
#define HITMAN 1239

// Zombie Classes (New classes)
#define STANDARDZOMBIE 2501
#define MUTATEDZOMBIE 2502
#define FASTZOMBIE 2503
#define REAPERZOMBIE 2504
#define WITCHZOMBIE 2505
#define BOOMERZOMBIE 2506
#define STOMPERZOMBIE 2507
#define SCREAMERZOMBIE 2508
#define FIREBREATHER 2509
#define ADVANCEDMUTATED 2510
#define HEAVYSCREAMER 2511
#define FLESHEATER 2512
#define ADVANCEDWITCH 2513
#define ADVANCEDBOOMER 2514
#define NEMESIS 2515
#define ADVSTOMPER 2516
#define ADVSCREAMER 2517
#define HZOMBIE 2518
#define SLENDER 2519
#define KZOM 2520
#define GZOM 2521
#define DSNIPE 2522

Dignity
16/08/2014, 02:23 AM
*insert crap here*


lol are u serious

CopKing123
16/08/2014, 11:38 AM
Guys i don't need it like this but i want it with an dialog where they can choose their weapons ! So yeah if you can make it make it stop doing those wrong topics...