GEHT NET!!!!!!!!!!!!!!!!!!
#include <a_samp>
new MoveDoor;
#define COLOR_DOOR 0xFF8000FF
#define Speed 2
#define OpenCoords 1075.736572, 1357.702393, 10.859375
#define CloseCoords 1070.179688, 1357.710327, 10.787984
#define OpenCoords 1059.093506, 1357.670898, 10.859375, 0.0000
#define CloseCoords 1064.594482, 1357.658569, 10.799286, 0.0000
MoveDoor = CreateObject1(988, 1070.179688, 1357.710327, 10.787984, 0.0000, 0.0000, 180.0000);
MoveDoor = CreateObject2(988, 1064.594482, 1357.658569, 10.799286, 0.0000, 0.0000, 180.0000);
return 1;
}
public OnFilterScriptExit()
{
print("\n------------------------------------");
print(" ---------King_Dani's Tor----------- ");
print("------------------------------------\n");
return 1;
}public OnPlayerCommandText(playerid, cmdtext[])
{
new cmd[256], idx;
cmd = strtok(cmdtext, idx);
if (!strcmp(cmd, "/tor", true))
{
new action[256];
action = strtok(cmdtext, idx);
if (!strlen(action)) return SendClientMessage(playerid, COLOR_DOOR, "[BENUTZE]: \"/tor [auf/zu]\"");
if (strcmp(action, "/auf", true)) MoveObject(MoveDoor, OpenCoords, Speed);
else if (strcmp(action, "/zu", true)) MoveObject(MoveDoor, CloseCoords, Speed);
else SendClientMessage(playerid, COLOR_DOOR, "[BENUTZE]: \"/tor [auf/zu]\"");
return 1;
}
return 0;
}
Alles anzeigen