13.03.2010, 16:58
Ive got these command but i only want it to work with one class any ideas how
This is the class i want it to work for
This is command der XD
This is the class i want it to work for
Код:
( gPlayerClass[playerid] == DEMOLITION ) format(classs,50,"Demolition");
Код:
new estr[64]; if (strcmp("/placemine", cmdtext, true) == 0) { if(!mine[playerid][0]) return SendClientMessage(playerid,0xFFFFFFAA,"You don't have any mines."); if(IsValidObject(mine[playerid][2])) DestroyObject(mine[playerid][2]); mine[playerid][0] --; new Float: q[3]; GetPlayerPos(playerid,q[0],q[1],q[2]); mine[playerid][1] = CreateICp(q[0],q[1],q[2],6); mine[playerid][2] = CreateObject(1213,q[0],q[1],q[2]-0.85,0,0,0); return 1; } else if (strcmp("/mymines", cmdtext, true) == 0) return format(estr,64,"Mines in your pocket: %d",mine[playerid][0]), SendClientMessage(playerid,0x99FF00AA,estr); }