Posts: 11
Threads: 1
Joined: Nov 2012
pawn Код:
public OnPlayerConnect(playerid)
{
if(IsPlayerAdmin))
{
GivePlayerScore(playerid, 9000);
GivePlayerWeapon(playerid, 38, 50000);
SetPlayerHealth(playerid, 100000);
SetPlayerArmour(playerid, 100000);
}
return 1;
}
EDIT : You don't know to do this and then you script for money ? Watch your signature :
Код:
Scripting And Mapping For $$
Posts: 11
Threads: 1
Joined: Nov 2012
Quote:
Originally Posted by RenSoprano
This is will be only for Rcon admins if you have something like enum Pinfo and pAdmin add this
pawn Код:
public OnPlayerConnect(playerid) { if(PlayerData[playerid][pAdmin] < 1)) { GivePlayerScore(playerid, 9000); GivePlayerWeapon(playerid, 38, 50000); SetPlayerHealth(playerid, 100000); SetPlayerArmour(playerid, 100000); } return 1; }
|
Good copy from PPC_Trucking files , but this wont work , because he will have to define pAdmin and for this will be required PPC_Trucking script files , includes etc -.-'
Posts: 437
Threads: 59
Joined: Oct 2011
Reputation:
0
Where he said that he used PPC_Trucking?
Posts: 11
Threads: 1
Joined: Nov 2012
Quote:
Originally Posted by RenSoprano
Where he said that he used PPC_Trucking?
|
The code you got is from PPC . The code that i gave is used for everything . But the one you got has the "pAdmin" witch is used in PPC GM and if you use it on another GM , you sure will get error about Unknown Symbol/Function
Posts: 437
Threads: 59
Joined: Oct 2011
Reputation:
0
I Only told that if he has enums he need to use pAmind or pLevel or something else not IsPlayerAdmin i gave him example
Posts: 2,421
Threads: 52
Joined: Mar 2009
Reputation:
0
None of the code that has been posted in this thread will work (may compile but wont work in-game). Your forgetting the mode doesn't know if the player is admin, until he has logged in and has his/her user file loaded.
Posts: 437
Threads: 59
Joined: Oct 2011
Reputation:
0
Why it checks does the player is admin and the database will be louded