14.08.2012, 01:55
Nгo sei mano, isso й um [FS] sу quero que apenas policia podece colocar esse tapete olha, igual a esse fs..:
:
:
Quote:
#include <a_samp> #include <core> #include <float> public OnPlayerCommandText(playerid, cmdtext) { if(!strcmp(cmdtext, "/escudo", true)) { new Float:var0 = 0.0; GetPlayerArmour(playerid, var0); if(var0 > 0) { return SendClientMessage(playerid, 0xFDE39DAA, "Vocк Ja Esta Equipado!."); } if(GetPlayerSkin(playerid) > 279 && GetPlayerSkin(playerid) < 289) { SetPlayerAttachedObject(playerid, 1, 19142, 1, 1036831949, 1028443341, 0, 0, 0, 0, 1065353216, 1065353216, 1065353216); SetPlayerAttachedObject(playerid, 2, 19141, 2, 1038174126, 0, 0, 0, 0, 0, 1065353216, 1065353216, 1065353216); SetPlayerAttachedObject(playerid, 3, 18637, 13, 1051931443, 0, 0, 0, 0, 1127481344, 1065353216, 1065353216, 1065353216); SetPlayerAttachedObject(playerid, 4, 18642, 7, 1036831949, 0, 3185657774, 0, 3266576384, 1119092736, 1065353216, 1065353216, 1065353216); GivePlayerWeapon(playerid, 3, 1); SetPlayerArmour(playerid, 100.0); SendClientMessage(playerid, 0xFDE39DAA, "Equipamentos colocados!."); } else { SendClientMessage(playerid, 0xFDE39DAA, "Vocк Nao й Um Policial!."); } return 1; } return 0; } public OnPlayerUpdate(playerid) { new Float:var0 = 0.0; GetPlayerArmour(playerid, var0); if(var0 < 1) { RemovePlayerAttachedObject(playerid, 1); } return 1; } public OnFilterScriptExit() { for(new var0 = 0; var0 < 500; var0++) { RemovePlayerAttachedObject(var0, 1); RemovePlayerAttachedObject(var0, 2); RemovePlayerAttachedObject(var0, 3); RemovePlayerAttachedObject(var0, 4); } return 1; } |