SA-MP Forums Archive
Be a cop [HELP] - 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: Be a cop [HELP] (/showthread.php?tid=83307)



Be a cop [HELP] - Xpoint - 24.06.2009

Oky.. i need to finish this -->

I am newbie so i dont know lot of PAWNO but i am learning.

I got this:

Код:
	if (strcmp("/beacop", cmdtext, true, 10) == 0)
	{
    new pName[MAX_PLAYER_NAME];
    new string[48];
    GetPlayerName(playerid, pName, sizeof(pName));
    format(string, sizeof(string), "**%s : Takes Hes Shirt and wears it!", pName);
    SendClientMessageToAll(0xAAAAAAAA, string);
	  LimitGlobalChatRadius(30);
		SetPlayerSkin( playerid, 71 );
		return 1;
	}
When he do this cmd player freeze... he gets the skin.. then after like 2 secs he gets skin 281 ... i dont know how to put thes together -->

Код:
    new pName[MAX_PLAYER_NAME];
    new string[48];
    GetPlayerName(playerid, pName, sizeof(pName));
    format(string, sizeof(string), "**%s : Puts hes uniform on!", pName);
    SendClientMessageToAll(0xAAAAAAAA, string);
	  LimitGlobalChatRadius(30);
		SetPlayerSkin( playerid, 281 );
EDIT: And is it possable to do this cmd for a player who got example: NAME_NAME[C] so the cmd can done thos who got [C] at end of name!
p.s i did start PAWNO yesterday so i am new!


Re: Be a cop [HELP] - Xpoint - 24.06.2009

Any one?