26.07.2012, 18:01
PHP код:
#endif
new PlayerText:paycheck[MAX_PLAYERS];
public OnGameModeInit()
{
// Don't use these lines if it's a filterscript
SetGameModeText("Blank Script");
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
SetTimerEx("myfunction", 3600000, true, "is", 1337, "hello!");
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
return 1;
}
public myfunction(playerid)
{
GivePlayerMoney(playerid,400);
paycheck[playerid] = TextDrawCreate(51, 321, "You got your paycheck");
TextDrawLetterSize(Text:paycheck[playerid], 0.5, 1.5);
TextDrawTextSize(Text:paycheck[playerid], 1, 2);
TextDrawAlignment(Text:paycheck[playerid], 3);
TextDrawColor(Text:paycheck[playerid], -65366);
TextDrawUseBox(Text:paycheck[playerid], 0);
TextDrawSetShadow(Text:paycheck[playerid], 2);
TextDrawBoxColor(Text:paycheck[playerid], -1347440726);
TextDrawSetOutline(Text:paycheck[playerid], 2);
TextDrawBackgroundColor(Text:paycheck[playerid], 170);
TextDrawFont(Text:paycheck[playerid], 3);
TextDrawSetProportional(Text:paycheck[playerid], 1);
TextDrawShowForPlayer(playerid, paycheck[playerid]);
return 1;
}