14.08.2012, 02:16
Tinha esse cуdigo aqui, nem uso mais.. nao sei a situaзгo dele й antigao
ADAPTA ao GM
ADAPTA ao GM
pawn Код:
if (strcmp("/escudo", cmdtext, true, 10) == 0)
{
if(PlayerInfo[playerid][pLeader] != 1 && PlayerInfo[playerid][pMember] != 1)
{
SendClientMessage(playerid, COLOR_WHITE, "Vocк nгo й LSPD.");
return 0x01;
}
else if (IsPlayerInRangeOfPoint(playerid, 6,255.3,77.4,1003.6) || IsPlayerInRangeOfPoint(playerid, 6,223.6328,186.8251,1003.0313) || IsPlayerInRangeOfPoint(playerid, 6, 233.4989,123.6518,1003.2188) || IsPlayerInRangeOfPoint(playerid, 6, 1748.5192,-1552.4083,-12.2411))
{
format(string, sizeof(string), "%s retira o seu escudo do armбrio e o coloca.", sendername);
ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SetPlayerHealth(playerid, 200);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Vocк pode retirar o escudo a qualquer momento usando, /retiraritens.");
EscudoFrente(playerid);
return 0x01;
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "Vocк nгo й oficial ou nгo estб no Armбrio!");
return 0x01;
}
}
if (strcmp("/escudoc", cmdtext, true, 10) == 0)
{
if(PlayerInfo[playerid][pLeader] != 1 && PlayerInfo[playerid][pMember] != 1)
{
SendClientMessage(playerid, COLOR_WHITE, "Vocк nгo й LSPD.");
return 0x01;
}
else if (IsPlayerInRangeOfPoint(playerid, 6,255.3,77.4,1003.6) || IsPlayerInRangeOfPoint(playerid, 6,223.6328,186.8251,1003.0313) || IsPlayerInRangeOfPoint(playerid, 6, 233.4989,123.6518,1003.2188) || IsPlayerInRangeOfPoint(playerid, 6, 1748.5192,-1552.4083,-12.2411))
{
format(string, sizeof(string), "%s retira o seu escudo do armбrio e o coloca nas suas costas.", sendername);
ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
EscudoCostas(playerid);
return 0x01;
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "Vocк nгo й oficial ou nгo estб no Armбrio!");
return 0x01;
}
}
if (strcmp("/retiraritens", cmdtext, true, 10) == 0 || strcmp("/removeritens", cmdtext, true, 10) == 0)
{
if(PlayerInfo[playerid][pLeader] != 1 && PlayerInfo[playerid][pMember] != 1)
{
SendClientMessage(playerid, COLOR_WHITE, "Vocк nгo й LSPD.");
return 0x01;
}
if (IsPlayerInRangeOfPoint(playerid, 6,255.3,77.4,1003.6) || IsPlayerInRangeOfPoint(playerid, 6,223.6328,186.8251,1003.0313) || IsPlayerInRangeOfPoint(playerid, 6, 233.4989,123.6518,1003.2188) || IsPlayerInRangeOfPoint(playerid, 6, 1748.5192,-1552.4083,-12.2411))
{
format(string, sizeof(string), "%s guarda os seus itens no armбrio.", sendername);
SetPlayerHealth(playerid, 100);
ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
if(IsPlayerAttachedObjectSlotUsed(playerid,1)) RemovePlayerAttachedObject(playerid,1);
if(IsPlayerAttachedObjectSlotUsed(playerid,2)) RemovePlayerAttachedObject(playerid,2);
return 0x01;
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "Vocк nгo й oficial ou nгo estб no Armбrio!");
return 0x01;
}
}