29.07.2010, 16:10
vejam se esta serto tipo o /kitsocio para pegar em qualquer lugar que o player estives e assim ?
Код:
if(strcmp(cmd, "/kitsocio", true) == 0) new location = PlayerInfo[playerid][pLocal]; if(location == 0 || location == 255 || location == 255) { GetPlayerName(playerid, sendername, sizeof(sendername)); if(PlayerInfo[playerid][pSocio]) { format(string, sizeof(string), "* : %s Pegou Seu Kitsocio.", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid, 24, 500); GivePlayerWeapon(playerid, 30, 1500); GivePlayerWeapon(playerid, 29, 1000); GivePlayerWeapon(playerid, 4, 1); GivePlayerWeapon(playerid, 34, 500); SendClientMessage(playerid,COLOR_GREEN,"Voce pegou o seu Kitsocio!"); return 1; } }