#include <a_samp>
new portepom1;
new portepom2;
new portepom3;
new portepom4;
new portepom5;
new portepom6;
public OnGameModeInit()
{
portepom1 = CreateObject(980, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);// Entrer
portepom2 = CreateObject(980, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);//Garage
portepom3 = CreateObject(980, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);//Garage
portepom4 = CreateObject(980, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);//Garage
portepom5 = CreateObject(980, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);//Garage
portepom6 = CreateObject(980, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);//Garage
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/pom ouvrir", true) == 0)
{
new string[50];
new movetime;
movetime = MoveObject(portepom1, 0, 0, 10, 2.00);
movetime = MoveObject(portepom2, 0, 0, 10, 2.00);
movetime = MoveObject(portepom3, 0, 0, 10, 2.00);
movetime = MoveObject(portepom4, 0, 0, 10, 2.00);
movetime = MoveObject(portepom5, 0, 0, 10, 2.00);
format(string, sizeof(string), "Vous avez ouvert les portes de la Caserne", movetime);
SendClientMessage(playerid, 0xFF000000, string);
return 1;
}
if(strcmp(cmdtext, "/pom ouvrirentrer", true) == 0)
{
new string[50];
new movetime;
movetime = MoveObject(portepom6, 0, 0, 10, 2.00);
format(string, sizeof(string), "Vous avez ouvert les porte de l'entrer", movetime);
SendClientMessage(playerid, 0xFF000000, string);
}
return 1;
}
|