GTA-SAMP
Каталог файлов

Меню сайта

Категории раздела

Мини-чат

Статистика


Онлайн всего: 1
Гостей: 1
Пользователей: 0

[FS]AFK System by •™.:: Cintrium ::. ™•
04.12.2008, 22:26
Команды:
/afk

/back


/* ________________________ AFK SYSTEM BY Cintrium © Copyright 2008 © ________________________ */ #include //=================================[DEFINES]============================================== #define COLOR_GREEN 0x33AA33AA #define COLOR_RED 0xAA3333AA #define COLOR_GREY 0xB4B5B7FF #define COLOR_INDIGO 0x4B00B0AA #define COLOR_AQUA 0x7CFC00AA #define COLOR_WHITE 0xFFFFFFAA #define COLOR_BLUE 0x99FFFFAA //===============================[NEW VARIABLES]=========================================== new IsAfk[MAX_PLAYERS]; public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp(cmdtext, "/afk", true) == 0) { new pName[MAX_PLAYER_NAME]; new string[48]; GetPlayerName(playerid, pName, sizeof(pName)); format(string, sizeof(string), "SERVER: %s is now AFK.", pName); SendClientMessageToAll(COLOR_RED, string); SetPlayerInterior(playerid, 3); SetPlayerPos(playerid,197.6661,173.8179,1003.0234); SetPlayerFacingAngle(playerid,0); TogglePlayerControllable(playerid, 0); IsAfk[playerid] = 1; return 1; } if(strcmp(cmdtext, "/back", true) == 0) { new pName[MAX_PLAYER_NAME]; new string[48]; GetPlayerName(playerid, pName, sizeof(pName)); format(string, sizeof(string), "SERVER: %s has returned", pName); SendClientMessageToAll(COLOR_GREEN, string); SetPlayerInterior(playerid,0); SetPlayerPos(playerid, 2057.5842, 843.3260, 6.7031); SetPlayerFacingAngle(playerid, 264.3768); TogglePlayerControllable(playerid, 1); IsAfk[playerid] = 0; } return 0; }


Категория: SAMP scripts | Добавил: gta-samp
Просмотров: 702 | Загрузок: 0 | Рейтинг: 0.0/0
Всего комментариев: 0
Имя *:
Email *:
Код *:

Вход на сайт

Поиск