if(strcmp(cmdtext,"/logoadm", true) == 0)
{
if(IsPlayerAdmin(playerid) || pAdmin[playerid] >= 1 )
{
if(IsPlayerAdmin(playerid)) print("logado como rcon");
if(pAdmin[playerid] > 0 ) print("logado como adm");
SetPlayerAttachedObject(playerid, 1, 18749, 1, 0.800000, 0.000000, 0.000000, 156.986312, 100.000000, 20.000000, 1.332795, 2.000000, 1.486337 ); // SAMPLogoSmall
}
else
{
print("nao й adm rcon, nem padmim"), printf("%i",pAdmin[playerid]);
SendClientMessage(playerid, GREEN, " Vocк nгo й um adminstrador");
}
return 1;
}
public OnPlayerSpawn(playerid)
{
if (pAdmin[playerid] > 0)
{
SetPlayerAttachedObject(playerid, 1, 18749, 1, 0.800000, 0.000000, 0.000000, 156.986312, 100.000000, 20.000000, 1.332795, 2.000000, 1.486337); // SAMPLogoSmall
return 1;
}
return 1;
}
if (pAdmin[playerid] > 0)
{
SetPlayerAttachedObject(playerid, 1, 18749, 1, 0.800000, 0.000000, 0.000000, 156.986312, 100.000000, 20.000000, 1.332795, 2.000000, 1.486337); // SAMPLogoSmall
return 1;
}
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
new cmd[128], tmp[128], idx, glasseid, skin, id;
cmd = strtok(cmdtext, idx);
if(!strcmp("/oculos",cmd,true))
{
tmp = strtok(cmdtext, idx);
skin = GetPlayerSkin(playerid);
id = strval(tmp);
if(!id || id > 33) return SendClientMessage(playerid, 0xFFFFFFAA, "{ff6633}/oculos [1 - 33]");
TextDrawShowForPlayer(playerid, MsgBox);
SetTimerEx("Hide", 3500, false, "d", playerid);
if(id > 30) goto PutPoliceGlasses;
else
{
id--;
glasseid = CommonRed + id;
SetPlayerHoldingObject(playerid, glasseid, 2, SkinOffSet[skin][0], SkinOffSet[skin][1], SkinOffSet[skin][2], SkinOffSet[skin][3], SkinOffSet[skin][4], SkinOffSet[skin][5]);
return 1;
}
PutPoliceGlasses:
glasseid = CopGlassesBlack + (id - 31);
SetPlayerHoldingObject(playerid, glasseid, 2, SkinOffSet[skin][0], floatadd(SkinOffSet[skin][1], 0.004500), SkinOffSet[skin][2], SkinOffSet[skin][3], SkinOffSet[skin][4], SkinOffSet[skin][5]);
return 1;
}
new vip[MAX_PLAYERS];
if(strcmp(cmdtext, "/comandosvip", true) == 0)
{
if(vip[playerid] == 0) return SendClientMessage(playerid, GREEN, "Vocк nгo й Vip!");
SendClientMessage(playerid, VERDE, "Lista de Comandos:");
SendClientMessage(playerid, AMARELO, "/animes /jetpack /minigun /bazuka /recuperar /repararp [ID] /virar");
SendClientMessage(playerid, AMARELO, "/cnn [Texto] /ann [Texto] /tunar /neon /gangcriar");
return true;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
new cmd[128], tmp[128], idx, glasseid, skin, id;
cmd = strtok(cmdtext, idx);
if(!strcmp("/oculos",cmd,true))
{
if(vip[playerid] == 0) return SendClientMessage(playerid, GREEN, "Vocк nгo й Vip!");
tmp = strtok(cmdtext, idx);
skin = GetPlayerSkin(playerid);
id = strval(tmp);
if(!id || id > 33) return SendClientMessage(playerid, 0xFFFFFFAA, "{ff6633}/oculos [1 - 33]");
TextDrawShowForPlayer(playerid, MsgBox);
SetTimerEx("Hide", 3500, false, "d", playerid);
if(id > 30) goto PutPoliceGlasses;
else
{
id--;
glasseid = CommonRed + id;
SetPlayerHoldingObject(playerid, glasseid, 2, SkinOffSet[skin][0], SkinOffSet[skin][1], SkinOffSet[skin][2], SkinOffSet[skin][3], SkinOffSet[skin][4], SkinOffSet[skin][5]);
return 1;
}
PutPoliceGlasses:
glasseid = CopGlassesBlack + (id - 31);
SetPlayerHoldingObject(playerid, glasseid, 2, SkinOffSet[skin][0], floatadd(SkinOffSet[skin][1], 0.004500), SkinOffSet[skin][2], SkinOffSet[skin][3], SkinOffSet[skin][4], SkinOffSet[skin][5]);
return 1;
}
if(vip[playerid] == 0) return SendClientMessage(playerid, GREEN, "Vocк nгo й Vip!");
nгo prestou olha isso й uma fs acho q ta entrando em conflito com gm nao sei
|