25.05.2014, 16:48
I'm only doing this cause you haven't scripted in a while... I hope you learn instead of copy/pasting.
pawn Код:
CMD:ref(playerid,params[])
{
new id;
if(sscanf(params,"u",id)) return SendClientMessage(playerid,-1,""FFFFFFFF"/ref [playerid]");//params stuff...
if(!IsPlayerConnected(id)) return SendClientMessage(playerid,-1,""FFFFFFFF"Invalid Player.");//if he is connected
if(PlayerInfo[playerid][pConnectHours] != 3) return SendClientMessage(playerid,-1,""FFFFFFFF"Your c-time must be exactly 3 hours.");//conecttime
PlayerInfo[giveplayerid][pConnectHours] == 4//if he has all atuff above, then do this and below it.
PlayerInfo[giveplayerid][pCredits] += 75
for(new cycle = 0; cycle < MAX_PLAYERS-1; cycle++)//go through every player.
{
if(PlayerInfo[cycle][pAdmin] >= 2)//check if he is admin.
{
new string[256]
new pName[24]
GetPlayerName(cycle,pName,sizeof(pName));
format(string,sizeof(string)," "%s has [blahblahblah]",pName);
SendClientMessage(cycle,-1,string);
}
return 1;