01.04.2013, 16:44
(
Последний раз редактировалось omidi; 01.04.2013 в 17:52.
)
i made 2 pickup the first pickup is like burger entrance and the other pickup if player dead it will create pickup (money icon)
so my problem is if even player goto burger shot entrance it will say u found a money !!!!
but when player dies and the pickup will be created then it all work fine but i want the pickup 2 only create aafter player dies
here u can compile it and see if u goto burger entrance pickup it says u found the money !!
so my problem is if even player goto burger shot entrance it will say u found a money !!!!
but when player dies and the pickup will be created then it all work fine but i want the pickup 2 only create aafter player dies
here u can compile it and see if u goto burger entrance pickup it says u found the money !!
Код:
#include <a_samp> #include <core> #include <float> #pragma tabsize 0 new downcluck; new moneypickup; SetupPlayerForClassSelection(playerid) { SetPlayerInterior(playerid,14); SetPlayerPos(playerid,258.4893,-41.4008,1002.0234); SetPlayerFacingAngle(playerid, 270.0); SetPlayerCameraPos(playerid,256.0815,-43.0475,1004.0234); SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234); } public OnPlayerRequestClass(playerid, classid) { SetupPlayerForClassSelection(playerid); return 1; } public OnPlayerSpawn(playerid) { SetPlayerPos(playerid,-1819.7742,613.3715,35.0156); SetPlayerInterior(playerid,0); return 1; } public OnPlayerDeath(playerid, killerid, reason) { moneypickup = CreatePickup(1318,1,-1811.7742,613.3715,35.0156,0);//down cluck ent return 1; } public OnGameModeInit() { SetGameModeText("Bare Script"); ShowPlayerMarkers(1); ShowNameTags(1); AllowAdminTeleport(1); DisableInteriorEnterExits(); AddPlayerClass(265,1958.3783,1343.1572,15.3746,270.1425,0,0,0,0,-1,-1); downcluck = CreatePickup(1318,1,-1816.4656,618.6737,35.5719,0);//down cluck ent return 1; } public OnPlayerPickUpPickup(playerid, pickupid) { if(pickupid == moneypickup){ SendClientMessage(playerid, 0xFFFFFF00, "u found money from corpse!"); GivePlayerMoney(playerid,1500); // gives dollars return 1; } if(pickupid == downcluck){ SetPlayerPos(playerid,365.7349,-8.0870,1001.8516);//cluckin g bell downtown 1 ent SetPlayerInterior(playerid, 9); return 1; } return 1; }