08.06.2011, 21:37
(
Последний раз редактировалось TiMxD; 08.06.2011 в 22:46.
)
Yeah, I just need a few commands.
/report [ID] [REASON]
/engine [ON/OFF]
/truck [OPEN/CLOSE] - Not sure if that's possible?
/hood [OPEN/CLOSE] - Not sure if that's possible?
/whisper [ID] [MESSEGE]
/me
/rentcar
/exitcar
I already made a /ooc and /b about 6 months ago, just gotta get it from my old website.
EDIT: Also, don't tell me to search. There are enough threads needing help. They trick me. Plus my friend already bought hosting (he isn't smart enough to know this actually takes time.)
EDIT2: About the /ooc and /b commands. I have it in the strcmp format. I need the zcmd version.
/report [ID] [REASON]
/engine [ON/OFF]
/truck [OPEN/CLOSE] - Not sure if that's possible?
/hood [OPEN/CLOSE] - Not sure if that's possible?
/whisper [ID] [MESSEGE]
/me
/rentcar
/exitcar
I already made a /ooc and /b about 6 months ago, just gotta get it from my old website.
EDIT: Also, don't tell me to search. There are enough threads needing help. They trick me. Plus my friend already bought hosting (he isn't smart enough to know this actually takes time.)
EDIT2: About the /ooc and /b commands. I have it in the strcmp format. I need the zcmd version.
Код:
// Credit below to TiMxD of SA-MP Forums and RaGEZONE Forums
if(strcmp(cmd, "/ooc", true) == 0 || strcmp(cmd, "/o", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(pInfo[playerid][pLogged] != 1)
{
SendClientMessage(playerid, COLOR_GREY, "* You havent Logged in yet!");
return 1;
}
GetPlayerName(playerid, pName, sizeof(pName));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GREY, "USAGE: /ooc [text]");
return 1;
}
if(OOC == 1)
{
format(string, sizeof(string), "(( %s: %s ))", pName, result);
SendClientMessageToAll(COLOR_WHITE,string);
format(string, sizeof(string), "[OOC] %s: %s",pName,result);
SaveOOC(string);
}
else
{
if(pAdmin[playerid] == 0)
{
SendClientMessage(playerid,COLOR_GREY,"* The OOC channel has been disabled!");
}
}
}
return 1;
}
if(strcmp(cmd, "/b", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(pInfo[playerid][pLogged] != 1)
{
SendClientMessage(playerid, COLOR_GREY, "* You havent logged in yet!");
return 1;
}
GetPlayerName(playerid, pName, sizeof(pName));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GREY, "USAGE: /b [Local OOC Chat]");
return 1;
}
format(string, sizeof(string), "(( %s: %s ))", pName, result);
ProxDetector(12.0, playerid, string,COLOR_CHAT4,COLOR_CHAT4,COLOR_CHAT4,COLOR_CHAT4,COLOR_CHAT4);
printf("%s", string);
}
return 1;
}
// Credit above to TiMxD of SA-MP Forums and RaGEZONE Forums

