There is a speed-o-metre in the mirc/pawno page Topic "Speedometre by madara" and speedometers are simple to make
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts MenuQuote from: heekz.shadow on March 19, 2011, 07:41:30 AM
LOOLQuoteServer IP: find it in list) Nice one
)
Quote from: heekz.shadow on March 19, 2011, 09:09:57 AM
XeroX
I wont help you cuz you are copying....
Quote from: heekz.shadow on March 19, 2011, 09:09:57 AM
XeroX
I wont help you cuz you are copying....
Quote from: heekz.shadow on March 19, 2011, 07:37:17 AM
Have you ever setted the pickupid?
like
AddStaticPickup(id,type,Float:X,Float:Y,Float:Z)
so that equals
AddStaticPickup(pickupid you use at OnPlayerPickedUp,his model,X,Y,Z);
Understood?
Quote from: theway on February 27, 2011, 12:02:02 PM
Right:
Quotepublic OnPlayerPickedUp(pickupid, playerid)
{
if(pickupid == 1) {
SendClientMessage(playerid,COLOR_GREEN,"use /c jobs to view jobs list");
}
return 1;
if(pickupid == 2) {
SendClientMessage(playerid,COLOR_GREEN,"you have drank a full bottle of beer");
SetPlayerDrunk(playerid,300,true);
}
return 1;
}
try this , is about " {} " wrong, my poor english ,
Quote from: BIG[H] on March 13, 2011, 12:24:53 PM
AddStaticPickup(id,model,x,y,z,ammo);
Quote from: BIG[H] on March 18, 2011, 04:22:10 PMNiceeeeeeeeeeeeeeeeeeeeeeeeee
Sup?? Poor in Math huh??
add this =Quoteelse if (strcmp(cmd, "cadd", true) == 0) {
new tmp2[128], tmp3[128];
tmp3 = strtok(cmdtext, idx);
tmp2 = strtok(cmdtext, idx);
if (!strlen(tmp2)) { SendClientMessage(playerid,COLOR_GREEN, "USAGE: /c cadd [value1] [value2]"); }
else if((!isnumeric(tmp2)) || (!isnumeric(tmp3))) SendClientMessage(playerid,COLOR_GREEN, "Error : Both Values Must Be Numeric");
else { new string[256];
new Float:ansa;
ansa = floatadd(floatstr(tmp2),floatstr(tmp3));
format(string,256,"You answer is [Addition][%s] + [%s] = [%f]",tmp2,tmp3,ansa);
SendClientMessage(playerid,Green,string);
}
return 1;
}
else if (strcmp(cmd, "csub", true) == 0) {
new tmp2[128], tmp3[128];
tmp3 = strtok(cmdtext, idx);
tmp2 = strtok(cmdtext, idx);
if (!strlen(tmp2)) { SendClientMessage(playerid,COLOR_GREEN, "USAGE: /c cadd [value1] [value2]"); }
else if((!isnumeric(tmp2)) || (!isnumeric(tmp3))) SendClientMessage(playerid,COLOR_GREEN, "Error : Both Values Must Be Numeric");
else {
new string[256];
new Float:ansa;
ansa = floatsub(floatstr(tmp2),floatstr(tmp3));
format(string,256,"You answer is [Subtration][%s] - [%s] = [%f]",tmp2,tmp3,ansa);
SendClientMessage(playerid,Green,string);
new zss[256];
}
return 1;
}
else if (strcmp(cmd, "cmul", true) == 0) {
new tmp2[128], tmp3[128];
tmp3 = strtok(cmdtext, idx);
tmp2 = strtok(cmdtext, idx);
if (!strlen(tmp2)) { SendClientMessage(playerid,COLOR_GREEN, "USAGE: /c cadd [value1] [value2]"); }
else if((!isnumeric(tmp2)) || (!isnumeric(tmp3))) SendClientMessage(playerid,COLOR_GREEN, "Error : Both Values Must Be Numeric");
else {
new string[256];
new Float:ansa;
ansa = floatmul(floatstr(tmp2),floatstr(tmp3));
format(string,256,"You answer is [Multiply][%s] X [%s] = [%f]",tmp2,tmp3,ansa);
SendClientMessage(playerid,Green,string);
}
return 1;
}
else if (strcmp(cmd, "cdiv", true) == 0) {
new tmp2[128], tmp3[128];
tmp3 = strtok(cmdtext, idx);
tmp2 = strtok(cmdtext, idx);
if (!strlen(tmp2)) { SendClientMessage(playerid,COLOR_GREEN, "USAGE: /c cadd [value1] [value2]"); }
else if((!isnumeric(tmp2)) || (!isnumeric(tmp3))) SendClientMessage(playerid,COLOR_GREEN, "Error : Both Values Must Be Numeric");
else {
new string[256];
new Float:ansa;
ansa = floatdiv(floatstr(tmp2),floatstr(tmp3));
format(string,256,"You answer is [Divide][%s] / [%s] = [%f]",tmp2,tmp3,ansa);
SendClientMessage(playerid,Green,string);
}
return 1;
}
At end of script if not in script add thisQuoteisnumeric(const string[])
{// mike's function
for (new i = 0, j = strlen(string); i < j; i++) { if (string > '9' || string < '0') return 0; }
return 1;
}