Red Circle - Delivering materials
#2

Quote:

public OnPlayerSpawn(playerid)//player comes alive
{
SetPlayerCheckpoint(playerid, 1982.6150, -220.6680, -0.2432, 3.0);// create marker
return 1;
}

public OnPlayerEnterCheckpoint(playerid)// player enters checkpoint
{
if(materialmen[playerid] == 1)// check if player is materialmen as job
{
GivePlayerMoney(playerid, 1000); // player gets 1000 $
DisablePlayerCheckpoint(playerid); // marker disapears
materials[playerid] = 0; // set player materials on 0
}
else
{
SendClientMessage(playerid, COLOR_RED,"you are not a material man");
return 1;
}

This is an example

so dont use itxD because it does not work xD

Reply


Messages In This Thread
Red Circle - Delivering materials - by Chivava - 30.04.2010, 21:43
Re: Red Circle - Delivering materials - by geerdinho8 - 30.04.2010, 21:56
Re: Red Circle - Delivering materials - by Chivava - 30.04.2010, 22:01
Re: Red Circle - Delivering materials - by Chivava - 01.05.2010, 08:13

Forum Jump:


Users browsing this thread: 1 Guest(s)