28.06.2009, 16:43
This is my requestspawn:
Its supposed to lock the skin for evryone but LVC_Chrham2, but it dont work. Can you helep me?
Код:
public OnPlayerRequestSpawn(playerid) { new playername[MAX_PLAYER_NAME]; if(gTeam[playerid]==Team_Cops) // POLICE { if(strcmp(playername,"LVC_Chrham2",false)==0) { SendClientMessage(playerid,COLOR_BLUE,"Welcome to you, Police Officer! You are now on duty and you must do your best to protect Chrham's City!"); return 1; } else { SendClientMessage(playerid,COLOR_BLUE,"Only cops who have applied at the forums can spawn."); SendClientMessage(playerid,COLOR_BLUE,"http://chrhamrpg.one-forum.net/businesses-f6/"); return 0; } } if(gTeam[playerid]==Team_FBI) // FBI { if(strcmp(playername,"LVC_Chrham2",false)==0) { SendClientMessage(playerid,COLOR_BLUE,"Welcome to you, FBI Officer! You are now on duty and you must do your best to protect Chrham's City!"); return 1; } else { SendClientMessage(playerid,COLOR_BLUE,"Only FBI Officers who have applied at the forums can spawn."); SendClientMessage(playerid,COLOR_BLUE,"http://chrhamrpg.one-forum.net/businesses-f6/"); return 0; } } if(gTeam[playerid]==Team_Army) // ARMY { if(strcmp(playername,"LVC_Chrham2",false)==0) { SendClientMessage(playerid,COLOR_BLUE,"Welcome to you guy in the army! You must do your best to protect Chrham's City!"); return 1; } else { SendClientMessage(playerid,COLOR_BLUE,"Only armys who have applied at the forums can spawn."); SendClientMessage(playerid,COLOR_BLUE,"http://chrhamrpg.one-forum.net/businesses-f6/"); return 0; } } else { return 1; } }