26.07.2012, 19:06
Try this:
Код:
#endif new Text: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); return 1; } public OnPlayerConnect(playerid) { SetTimerEx("myfunction", 3600000, true, "i", playerid); return true; } 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; }