Gate !
#1

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;
}
Reply


Messages In This Thread
Gate ! - by teomakedonija - 25.06.2012, 12:30
Re: Gate ! - by Grand_Micha - 25.06.2012, 12:34
Re: Gate ! - by teomakedonija - 25.06.2012, 12:41
Re: Gate ! - by Grand_Micha - 25.06.2012, 12:43
Re: Gate ! - by teomakedonija - 25.06.2012, 12:49
Re: Gate ! - by Jonny5 - 25.06.2012, 12:52

Forum Jump:


Users browsing this thread: 1 Guest(s)