25.06.2012, 12:30
How to set 2 players to open 1 gate here is code how to set I Carl Johnson and Tom Cruise to opening this gate ?
//-------------------------------RikiVila------------------------------------------------
if(strcmp(cmd,"/rikio",true)==0)
{
new Playername[24];
GetPlayerName(playerid, Playername, sizeof(Playername));
if(strcmp(Playername,"Tom_Cruise",true))
{
SendClientMessage(playerid, COLOR_LIGHTRED, "Nemate kluc od ova kapija!");
}
else
{
MoveObject(rikivilakapija, 1497.50000000,-699.70001221,90.50000000,3.00000000,0.00000000,0.0 0000000);
SendClientMessage(playerid, COLOR_LIGHTGREEN, "Ja otvorivte kapijata!");
}
return 1;
}
if(strcmp(cmd,"/rikic",true)==0)
{
new Playername[24];
GetPlayerName(playerid, Playername, sizeof(Playername));
if(strcmp(Playername,"Tom_Cruise",true))
if(strcmp(Playername,"Име_Презиме",true))
{
SendClientMessage(playerid, COLOR_LIGHTRED, "Nemate kluc od ova kapija!");
}
else
{
MoveObject(rikivilakapija, 1497.50000000,-699.70001221,96.50000000,3.00000000,0.00000000,0.0 0000000);
SendClientMessage(playerid, COLOR_LIGHTGREEN, "Ja zatvorivte kapijata!");
}
return 1;
}
//-------------------------------RikiVila------------------------------------------------
if(strcmp(cmd,"/rikio",true)==0)
{
new Playername[24];
GetPlayerName(playerid, Playername, sizeof(Playername));
if(strcmp(Playername,"Tom_Cruise",true))
{
SendClientMessage(playerid, COLOR_LIGHTRED, "Nemate kluc od ova kapija!");
}
else
{
MoveObject(rikivilakapija, 1497.50000000,-699.70001221,90.50000000,3.00000000,0.00000000,0.0 0000000);
SendClientMessage(playerid, COLOR_LIGHTGREEN, "Ja otvorivte kapijata!");
}
return 1;
}
if(strcmp(cmd,"/rikic",true)==0)
{
new Playername[24];
GetPlayerName(playerid, Playername, sizeof(Playername));
if(strcmp(Playername,"Tom_Cruise",true))
if(strcmp(Playername,"Име_Презиме",true))
{
SendClientMessage(playerid, COLOR_LIGHTRED, "Nemate kluc od ova kapija!");
}
else
{
MoveObject(rikivilakapija, 1497.50000000,-699.70001221,96.50000000,3.00000000,0.00000000,0.0 0000000);
SendClientMessage(playerid, COLOR_LIGHTGREEN, "Ja zatvorivte kapijata!");
}
return 1;
}