06.10.2011, 13:04
pawn Код:
public OnPlayerSpawn(playerid)
{
TextDrawShowForPlayer(playerid,Servt);
SetPlayerWorldBounds(playerid, 2907.791, 175.1681, -910.8743, -2791.012);
new skink;
skink=GetPlayerSkin(playerid);
if (skink==280||skink==286||skink==285||skink==165) {
SetPlayerTeam(playerid,0);
SendClientMessage(playerid,COLOR_LIGHTBLUE,"Welcome to the Police Force.");
GameTextForPlayer(playerid,"~bl~Police",3000,3);
PoliceRank[playerid] = 1; // Sets the guy's rank to 1, by default for now.
SetPlayerColor(playerid,COLOR_BLUE);
}
if (skink==248||skink==104||skink==107||skink==120) {
SetPlayerTeam(playerid,1);
SendClientMessage(playerid,COLOR_LIGHTBLUE,"Welcome back to the Gang dawg.");
GameTextForPlayer(playerid,"~r~Gangs",3000,3);
SetPlayerColor(playerid,COLOR_ORANGE);
}
//----------------------------------------------------------------------------------------------------------///
if(skink==270) {
new pName[MAX_PLAYER_NAME]; // Check if it is darren
GetPlayerName(playerid,pName,sizeof(pName));
if(strcmp(pName,"[DCV]Dragon") == 0){
if(IsPlayerLuxAdmin(playerid)) {
new string[128];
format(string,sizeof(string),"Welcome back Darren, the leader of Gangs.");
SetPlayerTeam(playerid, 1); // HAIL THE DARREN / DRAGON
GangRank[playerid] = 1337;
SetPlayerColor(playerid, COLOR_PURPLE);
SendClientMessage(playerid,COLOR_PURPLE,string);
}
else
SendClientMessage(playerid,COLOR_BRIGHTRED,"You are not Darren or Notis, or you are not logged in.");
Kick(playerid);
}
}
//--------------------------------------------------------------------------------------------------------------//
if(skink==164) {
new pName2[MAX_PLAYER_NAME]; // Check if it is notis
// Getting the players name and storing it in pName
GetPlayerName(playerid, pName2, sizeof(pName2));
//checks if it is notis too.
if(strcmp(pName2,"[DCV]Notis") == 0) {
if(IsPlayerLuxAdmin(playerid)){
new string2[128];
format(string2,sizeof(string2),"Welcome back Notis, the leader of Police.");
SetPlayerTeam(playerid, 0);
PoliceRank[playerid] = 1337;
SetPlayerColor(playerid, COLOR_YELLOW);
SendClientMessage(playerid,COLOR_WHITE,string2);
}
}
else
SendClientMessage(playerid,COLOR_BRIGHTRED, "You are not Darren or Notis, or you are not logged in.");
Kick(playerid);
}
return 1;
}
//-----------------------------------------------------------------------------------------------------------------//
It kicks me :\
I'm pretty sure i followed the Order the way the server reads the code, and stuff...