06.03.2016, 19:17
Hey guys,
I'm trying to make script which basically means that when a player clicks on Y it does the following
but nothing happens as I click it, seems like it doesn't detect the key for some reason..
I'm trying to make script which basically means that when a player clicks on Y it does the following
PHP код:
if(IsPlayerInSphere(playerid, 1528.4960,117.3113,17.3281, 15) && (newkeys & KEY_YES)) // LEAD
{
GivePlayerMoneyEx(playerid, -5000);
ApplyAnimation(playerid, "CARRY", "crry_prtial", 4.1, 1, 1, 1,0,0,1);
new myobject = CreateDynamicObject(1271, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
AttachObjectToPlayer(myobject, playerid, 1.5, 0.5, 0.0, 0.0, 1.5, 2);
if(GetTickCount() - PlayerTemp[playerid][cmdtick] < 4000) return SendClientWarning(playerid, "You may use this feature only once in each 4 seconds.");