Closed - 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: Closed (
/showthread.php?tid=134271)
Closed -
Steven82 - 15.03.2010
Could i make it instead of the set teams and other crap like set like a command i saw in cuff script to like
Isplayercop(then have the skin ids so i could just spawn as skin id's and have cop commands?)
Re: Police commands(could i) -
adsy - 16.03.2010
OnPlayerSpawn
skincheck[playerid] = GetPlayerSkin(playerid);
IsPlayerCop(playerid)
if(skincheck[playerid] == skinid || skincheck[playerid == skinid2]) etc etc etc{
return 1;
}
else return 0;
}
some incomplete code for you to go on there. should help
Re: Police commands(could i) -
Steven82 - 16.03.2010
sweet so this i could make instead of adding team great xD thank you.
EDIT: Sorry im a noob at script so could you create like how do i input the skins? And btw get many error when compiling sorry.
Re: Police commands(could i) -
bartje01 - 16.03.2010
OK. I used with skins too. This was how I did it
Код:
if (strcmp("/command", cmdtext, true, 10) == 0)
{
if(GetPlayerSkin(playerid) == 288) //change 288 to your skin
{
SendClientMessage(playerid,0x33AA33AA,"Replace this sendclient message to whatever you need");
}
else {
SendClientMessage(playerid, 0x33AA33AA, "You are not a cop");
}
return 1;
}
}
That should work.
Re: Police commands(could i) -
Deat_Itself - 16.03.2010
Код:
if (strcmp("/command", cmdtext, true, 10) == 0)
{
if(GetPlayerSkin(playerid) == 288) //change 288 to your skin
{
SendClientMessage(playerid,0x33AA33AA,"Replace this sendclient message to whatever you need");
}
else {
SendClientMessage(playerid, 0x33AA33AA, "You are not a cop");
}
return 1;
}
remove one bracket after return 1;
Re: Police commands(could i) -
Steven82 - 17.03.2010
closed