problem with pickup id <<<<
#4

test

Код:
#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)
{
	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
    moneypickup = CreatePickup(1318,1,-1811.7742,613.3715,35.0156,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;
}
Reply


Messages In This Thread
problem with pickup id <<<< - by omidi - 01.04.2013, 16:44
Re: problem with pickup id <<<< - by nor15 - 01.04.2013, 16:49
Re: problem with pickup id <<<< - by omidi - 01.04.2013, 17:46
Re: problem with pickup id <<<< - by brawrr - 01.04.2013, 19:02
Re: problem with pickup id <<<< - by omidi - 01.04.2013, 19:42
Re: problem with pickup id <<<< - by brawrr - 01.04.2013, 19:51
Re: problem with pickup id <<<< - by [CG]Milito - 01.04.2013, 20:28
Re: problem with pickup id <<<< - by kamzaf - 01.04.2013, 20:52

Forum Jump:


Users browsing this thread: 1 Guest(s)