26.02.2011, 18:35
bem eu axei um sistema aki de escudo,mas o problema e que so aparece o escudo,ele nao defende de tiro nem facada nem soco,tudo passa por ele,alguem podia me ajudar?
Код:
if(!strcmp(cmdtext,"/escudo",true)) { if(IsACop(playerid)) { SetPlayerAttachedObject(playerid,3,18637,13,0.35,0.0,0.0,0.0,0.0,180.0); SendClientMessage(playerid, COLOR_GREEN, "Vocк colocou escudo"); new NomeFDP[MAX_PLAYER_NAME]; GetPlayerName(playerid, NomeFDP, sizeof(NomeFDP)); format(string, sizeof(string), "O Policial %s colocou o escudo de protecзгo. ", NomeFDP); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); TogglePlayerControllable(playerid, 1); printf("%s", string); return 1; } else { SendClientMessage(playerid,COLOR_RED,"Vocк nгo й um COP."); } return 1; }