Admin Car si Personal Skin - 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: Admin Car si Personal Skin (
/showthread.php?tid=136863)
Admin Car si Personal Skin -
ColdXX - 26.03.2010
Hey can anyone tell me how can i do Admin cars or personla skins?
![Cheesy](images/smilies/biggrin.png)
Thanks in advance!
Re: Admin Car si Personal Skin -
Flake. - 26.03.2010
you can make a Admin team only enterable by admins then Set a number of cars to admin cars and lock them only enterable by admins
Re: Admin Car si Personal Skin -
[HiC]TheKiller - 26.03.2010
pawn Код:
new ACar[3]; // Change 3 with the amount of admin cars you have
public OnGameModeInit()
{
ACar[0] = AddStaticVehicle(...); //Admin Car1
ACar[1] = AddStaticVehicle(...); //Admin Car2
ACar[2] = AddStaticVehicle(...); //Admin Car3
//So on...
return 1;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
for(new V; V</*Amount of admin cars*/; V++)
{
if(vehicleid == ACar[V])
{
if(ispassenger == 0)
{
if(/*Admin Variable here, I'll use IsPlayerAdmin as a example*/ !IsPlayerAdmin(playerid))
{
new Pos[3];
GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
SetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
GameTextForPlayer(playerid, "~r~This is a admin only vehicle!", 1000, 3);
}
}
}
}
return 1;
}
Re: Admin Car si Personal Skin -
ColdXX - 26.03.2010
umm it doesnt work and IDK why:-S