- Регистрация
- 16 Ноя 2010
- Сообщения
- 86
- Лучшие ответы
- 0
- Репутация
- 17
Писать:
Танцевать:
PHP:
if(strcmp(cmd, "/pee", true) == 0)
{
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_PISSING);
return 1;
}
PHP:
if(strcmp(cmd, "/dance", true) == 0)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid,0xFF0000FF,"Используйте: /dance [Стиль танца(1-4)]");
return 1;
}
dancestyle = strval(tmp);
if(dancestyle < 1 || dancestyle > 4) {
SendClientMessage(playerid,0xFF0000FF,"Используйте: /dance [Стиль танца(1-4)]");
return 1;
}
if(dancestyle == 1) {
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE1);
} else if(dancestyle == 2) {
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE2);
} else if(dancestyle == 3) {
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE3);
} else if(dancestyle == 4) {
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE4);
}
return 1;
}