Gate ! -
teomakedonija - 25.06.2012
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;
}
Re: Gate ! -
Grand_Micha - 25.06.2012
https://sampforum.blast.hk/showthread.php?tid=45235
Re: Gate ! -
teomakedonija - 25.06.2012
Not Working i search for Players dont for Organizations Mafia, for Player !! if(strcmp(Playername, "Carl_Johnson",true)) How to create for 2 players open 2 gate i and Tom Cruise to open this gate
?
Re: Gate ! -
Grand_Micha - 25.06.2012
Code for idiots:
pawn Код:
if(strcmp(Playername, "Carl_Johnson",true)) OPEN IT
if(strcmp(Playername, "Tom_Cruise",true)) OPEN IT
Re: Gate ! -
teomakedonija - 25.06.2012
Dont working i have this and Tom Cruise opening Carl Johnson not :/
Re: Gate ! -
Jonny5 - 25.06.2012
ahem
pawn Код:
if(!strcmp(Playername, "Carl_Johnson",true))
//or
if(strcmp(Playername, "Carl_Johnson",true)==0)