24.02.2012, 18:46
pawn Код:
#include <a_samp>
public OnPlayerConnect(playerid)
{
DisablePlayerCheckpoint(playerid);
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
ShowPlayerDialog(playerid, 752, DIALOG_STYLE_LIST, "Welcome", "Radio($150) \nBaseballbat($10) \nToolkit($35) \nCigarettes($7) \nLighter($5) \nScratch Card($35) \nGas Can($50) \nMask($250) \nShovel($7) \nCellphone($50) \nCards($25) \nDice($2) \nParachute($15)\nCane($5)\nCamera($45)", "Buy", "Cancel");
}
public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
if (oldinteriorid == /*interior id of 24/7*/)
{
DisablePlayerCheckpoint(playerid);
}
if (newinteriorid == /*interior id of 24/7*/)
{
SetPlayerCheckpoint(playerid, 2.1507,-29.0139,1003.5494, 2.0);
}
return 1;
}