Problem[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)
+--- Thread: Problem[Help] (
/showthread.php?tid=385308)
Problem[Help] -
Akcent_Voltaj - 15.10.2012
how can i take these 3 off the screen??
Picture:
Re: Problem[Help] -
Akcent_Voltaj - 15.10.2012
can i erase them?
Re: Problem[Help] -
Riddick94 - 15.10.2012
As ****** said.. or if you want to remove them from class selection just use TogglePlayerSpectating.
Re: Problem[Help] -
Akcent_Voltaj - 15.10.2012
i put this at OnPlayerRequestClass and doesent work good. ""TogglePlayerSpectating(playerid,true);""
Re: Problem[Help] -
XtremeR - 15.10.2012
try
pawn Код:
TogglePlayerSpectating(playerid, 1);//1 instead..
Re: Problem[Help] -
Akcent_Voltaj - 15.10.2012
i did..same..
Re: Problem[Help] -
Akcent_Voltaj - 15.10.2012
example:im in a police car and i do /fuelcars it the fuel will remain 100 forever
PHP код:
if(strcmp(cmd, "/fuelcars", true) == 0)
{
if(IsPlayerConnected(playerid))
{
new TD_String[25];
if(PlayerInfo[playerid][pAdmin] >= 4)
{
for(new veh=0;veh<MAX_VEHICLES;veh++)
{
VehicleFuel[veh] = 100;
format(TD_String, 25, "%i", VehicleFuel[veh]);
}
TextDrawSetString(Text:Values[playerid][3], TD_String);
SendClientMessage(playerid, COLOR_RED, "• Toate Masinile au fost umplute de combustibil! •");
}
else
{
SendClientMessage(playerid, COLOR_GREY, " You are not an Admin ! ");
return 1;
}
}
return 1;
}
Re: Problem[Help] -
Riddick94 - 15.10.2012
Quote:
Originally Posted by XtremeR
try
pawn Код:
TogglePlayerSpectating(playerid, 1);//1 instead..
|
Do you know what the booleans values are? There's no difference between yours code and mine. THINK!
Topic:
Put the function in OnPlayerConnect.
Re: Problem[Help] -
Akcent_Voltaj - 15.10.2012
theres a problem ..i press tab and all players have level 0 ..but if they do /stats they can see their real level..why??
Re: Problem[Help] -
Roel - 15.10.2012
SetPlayerScore has to get called when the player connects.
Search if it is, if it isn't you have to add it with the correct level value from your register system.