SA-MP Forums Archive
how to - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: how to (/showthread.php?tid=133718)



how to - 02manchestera - 13.03.2010

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
Код:
( gPlayerClass[playerid] == DEMOLITION ) format(classs,50,"Demolition");
This is command der XD
Код:
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);
 }



Re: how to - Gamer_Z - 13.03.2010

use if(getplayerskin)


Re: how to - 02manchestera - 13.03.2010

will this go in the group on lines or by it self


Re: how to - 02manchestera - 13.03.2010

didnt work