public OnPlayerConnect(playerid)
{
static pname[MAX_PLAYER_NAME],string[32];
GetPlayerName(playerid, pname, sizeof(pname));
format(string, sizeof(string), "%s Entrou no Server!", pname);
SendClientMessageToAll(-1, string);
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
static pname[MAX_PLAYER_NAME],string[64];
GetPlayerName(playerid, pname, sizeof(pname));
switch(reason)
{
case 0: format(string, sizeof(string), "%s saiu do server. (Conexгo/Crash)",pname);
case 1: format(string, sizeof(string), "%s saiu do server. (Conta Prуpria)", pname);
case 2: format(string, sizeof(string), "%s saiu do server. (Kikado/Banido)", pname);
}
SendClientMessageToAll(-1, string);
return 1;
}
////////////////////////////////////////////////////////////////////////////////
if(!strcmp("/reparar",cmdtext,true))
{
RepairVehicle(GetPlayerVehicleID(playerid));
return 1;
}
if(!strcmp("/reparar",cmdtext,true))
{
SendClientMessage(playerid,COLOR_GOLD, "[INFO] Vocк reparou seu veнculo.");
RepairVehicle(GetPlayerVehicleID(playerid));
return 1;
}
if(!strcmp("/reparar",cmdtext,true))
{
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
if(logged[playerid] == 1)
{
if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pORG] >= 1 )
{
SendClientMessage(playerid,COLOR_GOLD, "[INFO] Vocк reparou seu veнculo.");
RepairVehicle(GetPlayerVehicleID(playerid));
return 1;
}
if(!strcmp("/reparar",cmdtext,true))
{
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
if(logged[playerid] == 1)
{
if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pORG] >= 1 )
{
SendClientMessage(playerid,COLOR_GOLD, "[INFO] Vocк reparou seu veнculo.");
RepairVehicle(GetPlayerVehicleID(playerid));
else if(Player[playerid][pAdmin] == 0)
SendClientMessage(playerid,-1, " voce nao й um admin!");
return 1;
}
aн vc esta fefinindo ele para admins e para membros da org numero 1.
pawn Код:
|
if(!strcmp("/reparar",cmdtext,true))
{
if(logged[playerid] == 1)
{
if(PlayerInfo[playerid][pAdmin] > 0 || PlayerInfo[playerid][pORG] > 0)
{
SendClientMessage(playerid,COLOR_GOLD, "[INFO] Vocк reparou seu veнculo.");
RepairVehicle(GetPlayerVehicleID(playerid));
}else{
SendClientMessage(playerid, -1, "fica na sola fdp @_@");
}
}
return 1;
}