Automatiski varti
Posted: 19 Jul 2008, 10:50
kaa var pielikt vaartiem taimeri lai tie pashi aizveertos??
script:
TNX!! 
script:
Code: Select all
#include
#define FILTERSCRIPT
#if defined FILTERSCRIPT
new baze;
new mainigais;
public OnGameModeInit()
{
mainigais = 0;
baze = CreateObject(972, -1776.458374, 983.251587, 22.321028, 0.0000, 0.0000, 0.0000);
}
public OnFilterScriptExit()
{
return 1;
}
#endif
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp("/gates", cmdtext, true, 6) == 0)
{
new Nick[MAX_PLAYER_NAME];
GetPlayerName(playerid, Nick, sizeof(Nick));
if(strfind(Nick, "asheks", true) != -1 || strfind(Nick, "asheks", true) != -1) {
if(mainigais == 0) {
SendClientMessage(playerid, 0x33AA33AA,"baze vala");
MoveObject(baze, -1776.458374, 983.251587, 29.346020, 3); //vala
mainigais = 1;
} else if(mainigais == 1) {
SendClientMessage(playerid, 0xAA3333AA,"baze ciet");
MoveObject(baze, -1776.458374, 983.251587, 22.321028, 3); //ciet
mainigais = 0;
}
}
return 1;
}
}